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: 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

View file

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