Skip to content

Guard fixOutput with setOutput instead of setInput#3002

Merged
snoyberg merged 1 commit into
commercialhaskell:masterfrom
RyanGlScott:master
Feb 20, 2017
Merged

Guard fixOutput with setOutput instead of setInput#3002
snoyberg merged 1 commit into
commercialhaskell:masterfrom
RyanGlScott:master

Conversation

@RyanGlScott

Copy link
Copy Markdown
Contributor

I adapted the fixCodePage function for use in my standalone code-page library, and while doing so I noticed a small mix-up in its implementation. fixCodePage uses the internal functions fixInput and fixOutput to actually change the input and output codepages respectively, but while fixInput is guarded by the value setInput, fixOutput isn't guarded by setOutput—it's guarded by setInput too! This seems like a mistake, unless I'm mistaken.

RyanGlScott added a commit to RyanGlScott/code-page that referenced this pull request Feb 14, 2017
@snoyberg snoyberg merged commit 9285c18 into commercialhaskell:master Feb 20, 2017
@snoyberg

Copy link
Copy Markdown
Contributor

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants