Skip to content

GHCI missing new line on Windows WSL 2.0 Debian Environment

Summary

Expressions entered in the GHCI REPL interface do not create a newline character after pressing enter before the output is rendered.

 ghci
GHCi, version 9.8.1: https://www.haskell.org/ghc/  :? for help
ghci> 1 + 12
ghci> double x = x + xghci> double 24
ghci>

Steps to reproduce

  • Start Alacritty Terminal version 0.11.0 on windows
  • Type command Debian to enter WSL environment
  • Type GHCI to start the GHCI interpreter.
  • Enter any expression and press enter.

Expected behavior

Expected the GHCI interpreter to create a new line character after pressing enter before displaying the output

 ghci
GHCi, version 9.8.1: https://www.haskell.org/ghc/  :? for help
ghci> 1 + 1
2
ghci> double x = x + x
ghci> double 2
4
ghci>

Environment

GHCup 0.1.20.0 latest,recommended
Stack 2.13.1 recommended
HLS 2.5.0.0 recommended
cabal 3.10.2.1 latest,recommended
GHC 9.8.1 base-4.19.0.0 hls-powered,2023-10-09

Optional:

Operating System:

  • WSL version: 2.0.9.0
  • Kernel version: 5.15.133.1-1
  • WSL image: Debian
  • WSLg version: 1.0.59
  • MSRDC version: 1.2.4677
  • Direct3D version: 1.611.1-81528511
  • DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
  • Windows version: 10.0.19045.4046

System Architecture: X86_64

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information