Skip to content

Commit

Permalink
Use StrictData (#147)
Browse files Browse the repository at this point in the history
Run this command to get the path to the stan report,

```
echo $(nix build --print-out-paths)/stan.html
```
  • Loading branch information
srid authored Jan 12, 2025
1 parent 2daf3ea commit 063b416
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
6 changes: 6 additions & 0 deletions src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ 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 063b416

Please sign in to comment.