https://github.com/rikvdkleij/intellij-haskell
- Install latest versions of ghc-mod and haskell-docs;
- Set file paths to
ghc-mod
,hlint
,stack
andhaskell-docs
in the menuSettings
/Other Settings
/Haskell
. - Be sure in
Editor/Filetypes
thatHaskell language file
is registered with pattern*.hs
andLiterate Haskell language file
with pattern*.lhs
;
stack build
stack install
- create project in IntelliJ:
File
/New
/Project...
New Project
wizard:Haskell module
and checkHaskell
inAdditional Libraries and Frameworks
;- Create
GHC SDK
with path e.g./usr/local/bin
; - In
Project structure
/Project settings
/Modules
exclude.stack-work
dist
, setSource
andTest
(normallysrc
andtest
). Tools
/Add Haskell package dependencies