Enable some useful language extensions
This commit is contained in:
parent
f7950223ff
commit
e9479b8034
2 changed files with 31 additions and 2 deletions
|
@ -52,17 +52,48 @@ executable haskell-template
|
||||||
|
|
||||||
ghc-options:
|
ghc-options:
|
||||||
-Wall -Wincomplete-record-updates -Wincomplete-uni-patterns
|
-Wall -Wincomplete-record-updates -Wincomplete-uni-patterns
|
||||||
|
-Wmissing-deriving-strategies -Wunused-foralls -Wunused-foralls
|
||||||
|
-fprint-explicit-foralls -fprint-explicit-kinds
|
||||||
|
|
||||||
default-extensions:
|
default-extensions:
|
||||||
|
NoStarIsType
|
||||||
|
BangPatterns
|
||||||
|
ConstraintKinds
|
||||||
|
DataKinds
|
||||||
|
DeriveDataTypeable
|
||||||
|
DeriveFoldable
|
||||||
|
DeriveFunctor
|
||||||
|
DeriveGeneric
|
||||||
|
DeriveLift
|
||||||
|
DeriveTraversable
|
||||||
|
DerivingStrategies
|
||||||
|
DerivingVia
|
||||||
|
EmptyCase
|
||||||
|
EmptyDataDecls
|
||||||
|
EmptyDataDeriving
|
||||||
|
ExistentialQuantification
|
||||||
|
ExplicitForAll
|
||||||
FlexibleContexts
|
FlexibleContexts
|
||||||
FlexibleInstances
|
FlexibleInstances
|
||||||
|
GADTSyntax
|
||||||
|
GeneralisedNewtypeDeriving
|
||||||
|
ImportQualifiedPost
|
||||||
KindSignatures
|
KindSignatures
|
||||||
LambdaCase
|
LambdaCase
|
||||||
MultiParamTypeClasses
|
MultiParamTypeClasses
|
||||||
MultiWayIf
|
MultiWayIf
|
||||||
|
NumericUnderscores
|
||||||
OverloadedStrings
|
OverloadedStrings
|
||||||
|
PolyKinds
|
||||||
|
PostfixOperators
|
||||||
|
RankNTypes
|
||||||
ScopedTypeVariables
|
ScopedTypeVariables
|
||||||
|
StandaloneDeriving
|
||||||
|
StandaloneKindSignatures
|
||||||
TupleSections
|
TupleSections
|
||||||
|
TypeApplications
|
||||||
|
TypeFamilies
|
||||||
|
TypeOperators
|
||||||
ViewPatterns
|
ViewPatterns
|
||||||
|
|
||||||
main-is: Main.hs
|
main-is: Main.hs
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
{-# LANGUAGE TypeApplications #-}
|
|
||||||
|
|
||||||
module Main where
|
module Main where
|
||||||
|
|
||||||
import Main.Utf8 (withUtf8)
|
import Main.Utf8 (withUtf8)
|
||||||
|
|
Loading…
Reference in a new issue