Ghc error messages on Windows

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Ghc error messages on Windows

Kees Bleijenberg

I’ve installed stack on Windows 7 64 bits. When I do “stack build” I get the output below. It looks like a character encoding problem. The generated executable is okay. This problems exists with all projects. Stack uses ghc version 8.4.3?

 

Kees

 

 

d:\haskell\Sudoku>stack build

[0mSudoku-0.1.0.0: unregistering (local file changes: src\CalcSudoku.hs)[0m

[0mSudoku-0.1.0.0: build (lib + exe)[0m

[0mPreprocessing library for Sudoku-0.1.0.0..[0m

[0mBuilding library for Sudoku-0.1.0.0..[0m

[0m[2 of 3] Compiling SudokuTypes      ( src\SudokuTypes.hs, .stack-work\dist\7

d103d30\build\SudokuTypes.o )[0m

[0m[3 of 3] Compiling CalcSudoku       ( src\CalcSudoku.hs, .stack-work\dist\7d

103d30\build\CalcSudoku.o )[0m

[0m[0m

[0m[;1msrc\CalcSudoku.hs:181:1: [;1m[31merror:[0m[0m[;1m[0m[0m[;1m[0m

 

[0m    parse error (possibly incorrect indentation or mismatched brackets)[0m

[0m[0m

[0m[;1m[34m    |[0m[0m[0m

[0m[;1m[34m181 |[0m[0m [;1m[31mg[0m[0metMin :: [a] -> [a -> Int] -> a

[0m[;1m[34m    |[0m[0m[;1m[31m ^[0m[0m[0m

[0m[0m[0m[0m[0m

 


_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Ghc error messages on Windows

arrowdodger


On Tue, Aug 28, 2018 at 2:56 PM Kees Bleijenberg <[hidden email]> wrote:

I’ve installed stack on Windows 7 64 bits. When I do “stack build” I get the output below. It looks like a character encoding problem. The generated executable is okay. This problems exists with all projects. Stack uses ghc version 8.4.3?


It is GHC trying to colorize output. Try `stack build --color=never`.

 

Kees

 

 

d:\haskell\Sudoku>stack build

[0mSudoku-0.1.0.0: unregistering (local file changes: src\CalcSudoku.hs)[0m

[0mSudoku-0.1.0.0: build (lib + exe)[0m

[0mPreprocessing library for Sudoku-0.1.0.0..[0m

[0mBuilding library for Sudoku-0.1.0.0..[0m

[0m[2 of 3] Compiling SudokuTypes      ( src\SudokuTypes.hs, .stack-work\dist\7

d103d30\build\SudokuTypes.o )[0m

[0m[3 of 3] Compiling CalcSudoku       ( src\CalcSudoku.hs, .stack-work\dist\7d

103d30\build\CalcSudoku.o )[0m

[0m[0m

[0m[;1msrc\CalcSudoku.hs:181:1: [;1m[31merror:[0m[0m[;1m[0m[0m[;1m[0m

 

[0m    parse error (possibly incorrect indentation or mismatched brackets)[0m

[0m[0m

[0m[;1m[34m    |[0m[0m[0m

[0m[;1m[34m181 |[0m[0m [;1m[31mg[0m[0metMin :: [a] -> [a -> Int] -> a

[0m[;1m[34m    |[0m[0m[;1m[31m ^[0m[0m[0m

[0m[0m[0m[0m[0m

 

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: Ghc error messages on Windows

Olaf Klinke
In reply to this post by Kees Bleijenberg
Kees,

the strange symbols are escape codes for coloring the output. Newer GHCs
color the error messages, and what you see is when GHC thinks it prints to
a color terminal but the terminal can not handle colors. I don't know how
to switch that off, though.

Olaf

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.