fpco / haskell.fpcomplete.com

FP Complete's Haskell Homepage
https://haskell.fpcomplete.com/
14 stars 10 forks source link

looking for answers to scripting with modules #23

Open ORESoftware opened 5 years ago

ORESoftware commented 5 years ago

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

snoyberg commented 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.

ORESoftware commented 5 years ago

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)