SBT-like features in the Haskell build ecosystem

后端 未结 3 1349
滥情空心
滥情空心 2021-02-03 15:40

I\'ve been using Scala with SBT quite a bit lately. The REPL loop of has a handy feature: ~ COMMAND, meaning perform COMMAND for every source file change in the pro

3条回答
  •  走了就别回头了
    2021-02-03 16:11

    You can script ghci to both define your own commands, and augment existing commands. To do this:

    • define a ~/.ghci file
    • write a macro using :def to replace e.g. :reload

    More info on GHCi :def commands is here.

提交回复
热议问题