ghc@9.6

Glasgow Haskell Compiler version 9.6 for compiling Haskell code

brewmacoslinux
Try with needOr install directly
Source

About

Glorious Glasgow Haskell Compilation System

Commands

ghcghcighc-pkghsc2hsrunghc

Examples

Compile a Haskell source file to an executable$ ghc -o myprogram myprogram.hs
Start the interactive REPL for exploring Haskell$ ghci
Run a Haskell script directly without compilation$ runghc myscript.hs