Coder Social home page Coder Social logo

Comments (2)

simonmichael avatar simonmichael commented on August 24, 2024

Verbose output, captured with script:

Script started on Fri Jul 29 16:18:05 2022
command: ghcid a.hs -v
%OS: darwin
%ARCH: aarch64
%VERSION: 0.8.7
%ARGUMENTS: ["a.hs","-v"]
Loading ghci -fno-code -fno-break-on-exception -fno-break-on-error -v1 -ferror-spans -j a.hs ...
%STDOUT: GHCi, version 9.2.2: https://www.haskell.org/ghc/  :? for help
%STDOUT2: GHCi, version 9.2.2: https://www.haskell.org/ghc/  :? for help
%STDIN: import qualified System.IO as INTERNAL_GHCID
%STDIN: :unset +t +s
%STDIN: :set prompt #~GHCID-START~#
%STDIN: :set prompt-cont #~GHCID-START~#
%STDIN: :set -fno-break-on-exception
%STDIN: :set -fno-break-on-error
%STDIN: :set -v1
%STDIN: :set -fno-hide-source-paths
%STDIN: 
INTERNAL_GHCID.putStrLn ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','1','~','#']
INTERNAL_GHCID.hPutStrLn INTERNAL_GHCID.stderr ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','1','~','#']
GHCi, version 9.2.2: https://www.haskell.org/ghc/  :? for help
%STDOUT: [1 of 1] Compiling Main             ( a.hs, nothing )
%STDOUT2: [1 of 1] Compiling Main             ( a.hs, nothing )
[1 of 1] Compiling Main             ( a.hs, nothing )
%STDOUT: Ok, one module loaded.
%STDOUT2: Ok, one module loaded.
Ok, one module loaded.
%STDOUT: ghci> ghci> ghci> ghci> #~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-FINISH-1~#
%STDERR: #~GHCID-FINISH-1~#
%STDIN: 
%STDIN: 
INTERNAL_GHCID.putStrLn ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','2','~','#']
INTERNAL_GHCID.hPutStrLn INTERNAL_GHCID.stderr ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','2','~','#']
%STDOUT: #~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-FINISH-2~#
%STDERR: #~GHCID-FINISH-2~#
%STDIN: :set -ferror-spans
:set -j
:set -fdiagnostics-color=always

%STDIN: 
INTERNAL_GHCID.putStrLn ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','3','~','#']
INTERNAL_GHCID.hPutStrLn INTERNAL_GHCID.stderr ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','3','~','#']
%STDOUT: #~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-FINISH-3~#
%STDERR: #~GHCID-FINISH-3~#
%STDIN: :show paths
%STDIN: 
INTERNAL_GHCID.putStrLn ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','4','~','#']
INTERNAL_GHCID.hPutStrLn INTERNAL_GHCID.stderr ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','4','~','#']
%STDOUT: #~GHCID-START~##~GHCID-START~#current working directory: 
%STDOUT:   /Users/simon/src
%STDOUT: module import search paths:
%STDOUT:   .
%STDOUT: #~GHCID-START~##~GHCID-START~##~GHCID-FINISH-4~#
%STDERR: #~GHCID-FINISH-4~#
%MESSAGES: [Loading {loadModule = "Main", loadFile = "/Users/simon/src/a.hs"}]
%LOADED: ["/Users/simon/src/a.hs"]
�]0;All good, at 16:18:06 - src�%WAITING: /Users/simon/src/.ghcid /Users/simon/src/a.hs
%WAITING: /Users/simon/src
%NOTIFY: Modified "/Users/simon/src/a.hs" 2022-07-29 15:18:10.623276 UTC False
%NOTIFY: Removed "/Users/simon/src/.#a.hs" 2022-07-29 15:18:10.623325 UTC False
%WAITING: Notify signaled
%STDIN: :reload
%STDIN: 
INTERNAL_GHCID.putStrLn ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','5','~','#']
INTERNAL_GHCID.hPutStrLn INTERNAL_GHCID.stderr ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','5','~','#']
%STDOUT: #~GHCID-START~##~GHCID-START~#[1 of 1] Compiling Main             ( a.hs, nothing )
%STDOUT: Failed, no modules loaded.
%STDERR: 
%STDERR: �[;1ma.hs:1:23: �[;1m�[31merror:�[0m�[0m�[;1m�[0m�[0m�[;1m
%STDERR:     lexical error in string/character literal at character '\n'�[0m�[0m
%STDERR: �[;1m�[34m  |�[0m�[0m
%STDERR: �[;1m�[34m1 |�[0m�[0m main = putStrLn "hello�[;1m�[31m�[0m�[0m
%STDERR: �[;1m�[34m  |�[0m�[0m�[;1m�[31m                       ^�[0m�[0m
%STDOUT: #~GHCID-START~##~GHCID-START~##~GHCID-FINISH-5~#
%STDERR: #~GHCID-FINISH-5~#
%STDIN: :show modules
%STDIN: 
INTERNAL_GHCID.putStrLn ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','6','~','#']
INTERNAL_GHCID.hPutStrLn INTERNAL_GHCID.stderr ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','6','~','#']
%STDOUT: #~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-FINISH-6~#
%STDERR: #~GHCID-FINISH-6~#
%MESSAGES: [Loading {loadModule = "Main", loadFile = "/Users/simon/src/a.hs"},Message {loadSeverity = Error, loadFile = "/Users/simon/src/a.hs", loadFilePos = (1,23), loadFilePosEnd = (1,23), loadMessage = ["\ESC[;1ma.hs:1:23: \ESC[;1m\ESC[31merror:\ESC[0m\ESC[0m\ESC[;1m\ESC[0m\ESC[0m\ESC[;1m","    lexical error in string/character literal at character '\\n'\ESC[0m\ESC[0m","\ESC[;1m\ESC[34m  |\ESC[0m\ESC[0m","\ESC[;1m\ESC[34m1 |\ESC[0m\ESC[0m main = putStrLn \"hello\ESC[;1m\ESC[31m\ESC[0m\ESC[0m","\ESC[;1m\ESC[34m  |\ESC[0m\ESC[0m\ESC[;1m\ESC[31m                       ^\ESC[0m\ESC[0m"]}]
%LOADED: ["/Users/simon/src/a.hs"]
�]0;1 error - src�%WAITING: /Users/simon/src/.ghcid /Users/simon/src/a.hs
%WAITING: /Users/simon/src
^C%STDIN: :quit
%STDIN: 
INTERNAL_GHCID.putStrLn ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','7','~','#']
INTERNAL_GHCID.hPutStrLn INTERNAL_GHCID.stderr ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','7','~','#']
%STDOUT: #~GHCID-START~##~GHCID-START~#Leaving GHCi.
�[?25h
Script done on Fri Jul 29 16:18:13 2022

or in emacs shell:

$ ghcid a.hs -v
%OS: darwin
%ARCH: aarch64
%VERSION: 0.8.7
%ARGUMENTS: ["a.hs","-v"]
Loading ghci -fno-code -fno-break-on-exception -fno-break-on-error -v1 -ferror-spans -j a.hs ...
%STDOUT: GHCi, version 9.2.2: https://www.haskell.org/ghc/  :? for help
%STDOUT2: GHCi, version 9.2.2: https://www.haskell.org/ghc/  :? for help
%STDIN: import qualified System.IO as INTERNAL_GHCID
%STDIN: :unset +t +s
%STDIN: :set prompt #~GHCID-START~#
%STDIN: :set prompt-cont #~GHCID-START~#
%STDIN: :set -fno-break-on-exception
%STDIN: :set -fno-break-on-error
%STDIN: :set -v1
%STDIN: :set -fno-hide-source-paths
%STDIN: 
INTERNAL_GHCID.putStrLn ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','1','~','#']
INTERNAL_GHCID.hPutStrLn INTERNAL_GHCID.stderr ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','1','~','#']
GHCi, version 9.2.2: https://www.haskell.org/ghc/  :? for help
%STDOUT: [1 of 1] Compiling Main             ( a.hs, nothing )
%STDOUT2: [1 of 1] Compiling Main             ( a.hs, nothing )
[1 of 1] Compiling Main             ( a.hs, nothing )
%STDOUT: Ok, one module loaded.
%STDOUT2: Ok, one module loaded.
Ok, one module loaded.
%STDOUT: ghci> ghci> ghci> ghci> #~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-FINISH-1~#
%STDERR: #~GHCID-FINISH-1~#
%STDIN: 
%STDIN: 
INTERNAL_GHCID.putStrLn ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','2','~','#']
INTERNAL_GHCID.hPutStrLn INTERNAL_GHCID.stderr ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','2','~','#']
%STDOUT: #~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-FINISH-2~#
%STDERR: #~GHCID-FINISH-2~#
%STDIN: :set -ferror-spans
:set -j
:set -fdiagnostics-color=always

%STDIN: 
INTERNAL_GHCID.putStrLn ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','3','~','#']
INTERNAL_GHCID.hPutStrLn INTERNAL_GHCID.stderr ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','3','~','#']
%STDOUT: #~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-FINISH-3~#
%STDERR: #~GHCID-FINISH-3~#
%STDIN: :show paths
%STDIN: 
INTERNAL_GHCID.putStrLn ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','4','~','#']
INTERNAL_GHCID.hPutStrLn INTERNAL_GHCID.stderr ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','4','~','#']
%STDOUT: #~GHCID-START~##~GHCID-START~#current working directory: 
%STDOUT:   /Users/simon/src
%STDOUT: module import search paths:
%STDOUT:   .
%STDOUT: #~GHCID-START~##~GHCID-START~##~GHCID-FINISH-4~#
%STDERR: #~GHCID-FINISH-4~#
%MESSAGES: [Loading {loadModule = "Main", loadFile = "/Users/simon/src/a.hs"}]
%LOADED: ["/Users/simon/src/a.hs"]
�]0;All good, at 16:19:27 - src�%WAITING: /Users/simon/src/.ghcid /Users/simon/src/a.hs
%WAITING: /Users/simon/src
%NOTIFY: Modified "/Users/simon/src/a.hs" 2022-07-29 15:19:30.613601 UTC False
%NOTIFY: Removed "/Users/simon/src/.#a.hs" 2022-07-29 15:19:30.613624 UTC False
%WAITING: Notify signaled
%STDIN: :reload
%STDIN: 
INTERNAL_GHCID.putStrLn ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','5','~','#']
INTERNAL_GHCID.hPutStrLn INTERNAL_GHCID.stderr ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','5','~','#']
%STDOUT: #~GHCID-START~##~GHCID-START~#[1 of 1] Compiling Main             ( a.hs, nothing )
%STDERR: 
%STDOUT: Failed, no modules loaded.
%STDERR: a.hs:1:23: error:
%STDOUT: #~GHCID-START~##~GHCID-START~##~GHCID-FINISH-5~#
%STDERR:     lexical error in string/character literal at character '\n'
%STDERR:   |
%STDERR: 1 | main = putStrLn "hello
%STDERR:   |                       ^
%STDERR: #~GHCID-FINISH-5~#
%STDIN: :show modules
%STDIN: 
INTERNAL_GHCID.putStrLn ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','6','~','#']
INTERNAL_GHCID.hPutStrLn INTERNAL_GHCID.stderr ['#','~','G','H','C','I','D','-','F','I','N','I','S','H','-','6','~','#']
%STDOUT: #~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-START~##~GHCID-FINISH-6~#
%STDERR: #~GHCID-FINISH-6~#
%MESSAGES: [Loading {loadModule = "Main", loadFile = "/Users/simon/src/a.hs"},Message {loadSeverity = Error, loadFile = "/Users/simon/src/a.hs", loadFilePos = (1,23), loadFilePosEnd = (1,23), loadMessage = ["\ESC[;1ma.hs:1:23: \ESC[;1m\ESC[31merror:\ESC[0m\ESC[0m\ESC[;1m\ESC[0m\ESC[0m\ESC[;1m","    lexical error in string/character literal at character '\\n'\ESC[0m\ESC[0m","\ESC[;1m\ESC[34m  |\ESC[0m\ESC[0m","\ESC[;1m\ESC[34m1 |\ESC[0m\ESC[0m main = putStrLn \"hello\ESC[;1m\ESC[31m\ESC[0m\ESC[0m","\ESC[;1m\ESC[34m  |\ESC[0m\ESC[0m\ESC[;1m\ESC[31m                       ^\ESC[0m\ESC[0m"]}]
%LOADED: ["/Users/simon/src/a.hs"]
�]0;1 error - src�%WAITING: /Users/simon/src/.ghcid /Users/simon/src/a.hs
%WAITING: /Users/simon/src

from ghcid.

simonmichael avatar simonmichael commented on August 24, 2024

Ha! Even though I had an arm64 build of ghcid-0.8.7, dated this year, reinstalling ghcid has fixed it. I noticed it rebuilding terminal-size-0.3.3 and ghcid-0.8.7. ghcid's usual glorious output is back, I hadn't seen it for a long time. Go figure!

from ghcid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.