Skip to content

Instantly share code, notes, and snippets.

@LucianU
Created July 16, 2019 09:47
Show Gist options
  • Save LucianU/097a4a67864e9dab6f41551a06330918 to your computer and use it in GitHub Desktop.
Save LucianU/097a4a67864e9dab6f41551a06330918 to your computer and use it in GitHub Desktop.
Example .ghci for yesod projects
:set -DDEVELOPMENT
:set -i./src:./test
:set -fobject-code
:set -O0
:set +s
:set -freverse-errors
:set -Wall
:set -Wincomplete-uni-patterns
:set -Wincomplete-record-updates
:set -Widentities
:set -Wredundant-constraints
:set -Wcpp-undef
:set -Wimplicit-prelude
:set -XNoImplicitPrelude
:set -Werror=incomplete-patterns
:def! test (\expr -> return $ ":!clear\n:l test/Spec.hs\n:main " ++ expr ++"\n")
:def! serve const . return $ ":l app/DevelMain\nDevelMain.update\n"
:def! hlint const . return $ ":! hlint ./src ./test ./app"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment