Open ORESoftware opened 5 years ago
I've already provided an answer on that SO question. The quick start guides aren't intended to explain all topics, but if you're interested a PR explaining this case would be great.
thanks yeah that answer on SO worked, once I learn more about haskell and stuff will contribute, the only thing I know now is that it's -isrc
not -i src
:)
but a short article on scripting with haskell would be worthwhile imo...main advantage is not having to compile on each new platform...using that stack runghc
technique seems like it's actually interpreted, not compiled then run (like go run
does)
I was reading this great article: https://haskell.fpcomplete.com/tutorial/stack-script
I got things working, but have this question: https://stackoverflow.com/questions/56105510/how-to-import-adjacent-module-when-running-hs-file-as-script
wondering if you can help with it, and maybe add it to that article? thx