Skip to content

[purs ide] Reads files in TextMode for adding imports - #2850

Merged
paf31 merged 1 commit into
purescript:masterfrom
kritzcreek:purs-ide-crlf-add-import
Apr 17, 2017
Merged

[purs ide] Reads files in TextMode for adding imports#2850
paf31 merged 1 commit into
purescript:masterfrom
kritzcreek:purs-ide-crlf-add-import

Conversation

@kritzcreek

Copy link
Copy Markdown
Member

The functions provided in System.IO.UTF8 use ByteString's readFile, which uses https://hackage.haskell.org/package/base-4.9.1.0/docs/System-IO.html#v:openBinaryFile under the hood, which in turn causes trouble when we treat source files as text on Windows.

Fixes #2833 (works on my machine :pitchfork: Windows :pitchfork:)

The functions provided in System.IO.UTF8 use ByteString's readFile, which uses
https://hackage.haskell.org/package/base-4.9.1.0/docs/System-IO.html#v:openBinaryFile
under the hood, which in turn causes trouble when we treat source files as text
on Windows.
@paf31
paf31 merged commit d5732af into purescript:master Apr 17, 2017
@kritzcreek
kritzcreek deleted the purs-ide-crlf-add-import branch April 17, 2017 18:13
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