3 ms·
For those who lack the generics, I just wanted to remind that you can "script" in Haskell by adding this to your header: #!/usr/bin/env stack -- stack
by k_bx 8y ago
For those who lack the generics, I just wanted to remind that you can "script" in Haskell by adding this to your header:
#!/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.
- exceptione 8y agoGood trick! Do you also know the Turtle library? I just got across it, and it looks like a neat shell library from the outside.