From bf38a7446af9fbb0e7170eaf114f665fb99725d8 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Tue, 17 Dec 2024 15:46:35 -0500 Subject: [PATCH 1/3] Use StrictData --- haskell-template.cabal | 1 + src/Main.hs | 8 ++++++++ 2 files changed, 9 insertions(+) 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. From b3e5b5c330b54409376d9fa9f7300b3e5ee49a72 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Fri, 20 Dec 2024 09:05:12 -0500 Subject: [PATCH 2/3] Update haskell-flake (to get the fix) --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index dc816a1..459d869 100644 --- a/flake.lock +++ b/flake.lock @@ -53,11 +53,11 @@ }, "haskell-flake": { "locked": { - "lastModified": 1734464164, - "narHash": "sha256-5JCCyrgy7IMnipyYMQzIAXncGt2XVlW1aK71A+FTXDs=", + "lastModified": 1734703440, + "narHash": "sha256-QQbB7e9DQwKCjuLIMQjd9KTpeyvssK9muNAS7hR98y0=", "owner": "srid", "repo": "haskell-flake", - "rev": "e280b39efdd72b6a5bdaa982b67f150c819be642", + "rev": "72a4c403230c4b8bcfa5571c3b7e76253fc8d966", "type": "github" }, "original": { From 7942f6ecaf6f150b1915ecc4fdab65861fe671d9 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Fri, 20 Dec 2024 09:05:17 -0500 Subject: [PATCH 3/3] pragma not necessary --- src/Main.hs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Main.hs b/src/Main.hs index 1842b64..d8b3d4f 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -1,5 +1,3 @@ -{-# LANGUAGE StrictData #-} - module Main where import Main.Utf8 qualified as Utf8