Haskell scripts - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Sridhar Ratnakumar

https://www.srid.ca/haskell-nix.html#haskell-scripts

-- myscript.hs
#! /usr/bin/env nix-shell
#! nix-shell -p ghcid
#! nix-shell -p "haskellPackages.ghcWithPackages (p: [p.containers])"
#! nix-shell -i "ghcid -c 'ghci -Wall' -T main"

import qualified Data.Map.Strict as Map

main :: IO ()
main = print $ Map.fromList [("Hello", "World")]