How to get HIE to detect packages installed via stack for scripts

Published: 14/11/2019
How to get HIE to detect packages installed via stack for scripts
Source: STACKOVERFLOW.COM

I'm just getting started with learning how to use haskell for scripting, and I've got something like this: #!/usr/bin/env stack -- stack --resolver lts-14.13 script {-# LANGUAGE OverloadedStrings #-} import Turtle main :: IO () main = echo "hello" When I run this with stack script.hs , it auto-magically installs turtle and prints "hello". However, my editor gives me this error on the import

Read more
Related news
Comment
FACEBOOK