Hacker News new | ask | show | jobs
by xelxebar 3177 days ago
I know you're joking, but I would really like to have the Haskell type system in my shell with suitably-typed versions of the standard utilities: sed, awk, grep, etc.

I tried asking #haskell on freenode about "using ghci as a shell" and everybody thought it was a horrible idea. Oh well :(

1 comments

If what most people thought were always the way taken we wouldn't have any of the great things we have today. In other words: try using it as a shell anyway, write the needed pieces of infrastructure, and share the results! :)

(There are people who've done work in this direction, but none of them haven't broken out to any significant amount of followers.)

Thanks for the encouragement! For those at all interested, some of the existing tools/libs in this arena are

    * shelly [1],
    * turtle [2], and
    * hell [3].
I currently don't have much Haskell experience, but I do keep a ghci session open, hoping that the frustrations of using it as a shell push me to both learn and create.

[1] https://hackage.haskell.org/package/shelly

[2] https://hackage.haskell.org/package/turtle

[3] https://hackage.haskell.org/package/hell