Developers, Developers, Developers! Maksim Sorokin IT Blog

11May/100

Easy Way to Include a Module From Different Folder in Haskell

So you just want to include a module from a different folder in Haskell. Of course, you can easily make a cabal module, but sometimes you just need easy and fast (or maybe temporary) solution.

During ghci startup just add -i<dir> parameter where <dir> stands for directory with module you want to import.
For example if you want to include a module from parent directory:

ghci -i../
Tagged as: , No Comments