Enable some useful language extensions

This commit is contained in:
Sridhar Ratnakumar 2022-01-13 18:23:29 -05:00
parent f7950223ff
commit e9479b8034
2 changed files with 31 additions and 2 deletions

View file

@ -52,17 +52,48 @@ executable haskell-template
ghc-options:
-Wall -Wincomplete-record-updates -Wincomplete-uni-patterns
-Wmissing-deriving-strategies -Wunused-foralls -Wunused-foralls
-fprint-explicit-foralls -fprint-explicit-kinds
default-extensions:
NoStarIsType
BangPatterns
ConstraintKinds
DataKinds
DeriveDataTypeable
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveLift
DeriveTraversable
DerivingStrategies
DerivingVia
EmptyCase
EmptyDataDecls
EmptyDataDeriving
ExistentialQuantification
ExplicitForAll
FlexibleContexts
FlexibleInstances
GADTSyntax
GeneralisedNewtypeDeriving
ImportQualifiedPost
KindSignatures
LambdaCase
MultiParamTypeClasses
MultiWayIf
NumericUnderscores
OverloadedStrings
PolyKinds
PostfixOperators
RankNTypes
ScopedTypeVariables
StandaloneDeriving
StandaloneKindSignatures
TupleSections
TypeApplications
TypeFamilies
TypeOperators
ViewPatterns
main-is: Main.hs

View file

@ -1,5 +1,3 @@
{-# LANGUAGE TypeApplications #-}
module Main where
import Main.Utf8 (withUtf8)