example: Move extensions to cabal file

This commit is contained in:
Ali Abrar 2021-03-24 13:18:09 -04:00
parent 1fddcbac96
commit 565fec0831
2 changed files with 31 additions and 12 deletions

View File

@ -82,7 +82,6 @@ library
TypeApplications
TypeFamilies
executable example
hs-source-dirs: src-bin
main-is: example.hs
@ -97,6 +96,37 @@ executable example
transformers,
vty
default-language: Haskell2010
other-modules: Example.CPU
default-extensions:
BangPatterns
ConstraintKinds
CPP
DataKinds
DefaultSignatures
DeriveFunctor
DeriveGeneric
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
GeneralizedNewtypeDeriving
KindSignatures
LambdaCase
MultiParamTypeClasses
MultiWayIf
OverloadedStrings
PatternGuards
PolyKinds
QuasiQuotes
RankNTypes
RecursiveDo
ScopedTypeVariables
StandaloneDeriving
TemplateHaskell
TupleSections
TypeApplications
TypeFamilies
source-repository head
type: git

View File

@ -1,14 +1,3 @@
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecursiveDo #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ConstraintKinds #-}
import Control.Applicative
import Control.Monad
import Control.Monad.Fix