by k_bx · 8y ago · 0 comments
#!/usr/bin/env stack
-- stack script --resolver=lts-12.2
and run it as an executable if your machine has stack installed. If not -- compile it with a `stack ghc --resolver=lts-12.2 ./file.hs` and you'll have a `./file` executable. No project creation, no need to list the dependencies.