diff --git a/haskell-template.cabal b/haskell-template.cabal index ad695c6..d7782cf 100644 --- a/haskell-template.cabal +++ b/haskell-template.cabal @@ -41,6 +41,7 @@ common shared MultiWayIf NoStarIsType OverloadedStrings + StrictData TypeFamilies ViewPatterns diff --git a/src/Main.hs b/src/Main.hs index 52a9767..1842b64 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -1,7 +1,15 @@ +{-# LANGUAGE StrictData #-} + module Main where import Main.Utf8 qualified as Utf8 +data Example = Example + { name :: Text + , age :: Int + } + deriving stock (Show, Eq) + {- | Main entry point.