Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to get `cabal repl` to set -XOverloadedStrings on startup?

Tags:

haskell

cabal

When I use cabal repl I often type :set -XOverloadedStrings in the session. Is there a way to turn on this extension automatically using command line flags for cabal repl or some config file?

like image 380
dan Avatar asked Sep 03 '25 04:09

dan


1 Answers

In ~/.ghci put:

:set -XOverloadedStrings

Putting on ~/.ghci will enable ghci to load those specific configuration whenever it is started.

like image 197
Sibi Avatar answered Sep 05 '25 02:09

Sibi