chore: initialize project template

This commit is contained in:
♥ Minnie ♥ 2025-02-20 13:43:07 +08:00
commit 3857b5dfa3
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
15 changed files with 3728 additions and 0 deletions

20
src/Main.hs Normal file
View file

@ -0,0 +1,20 @@
module Main where
import Main.Utf8 qualified as Utf8
data Example = Example
{ name :: Text
, age :: Int
}
deriving stock (Show, Eq)
{- |
Main entry point.
`just run` will invoke this function.
-}
main :: IO ()
main = do
-- For withUtf8, see https://serokell.io/blog/haskell-with-utf8
Utf8.withUtf8 $ do
putTextLn "Hello 🌎 (from xmonad-config)"