Skip to content

Commit

Permalink
Use StrictData
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Dec 17, 2024
1 parent c8b60b1 commit d95e078
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions haskell-template.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ common shared
MultiWayIf
NoStarIsType
OverloadedStrings
StrictData
TypeFamilies
ViewPatterns

Expand Down
8 changes: 8 additions & 0 deletions src/Main.hs
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit d95e078

Please sign in to comment.