ref: c68f7b44d2527a78af7b5d661a9cddd253144ba9
parent: bf23440e3fa1cbee7e90d5e40b88406e47f478c4
author: Lennart Augustsson <lennart@augustsson.net>
date: Wed Nov 8 11:31:59 EST 2023
Small speedup with strict constructors.
--- a/src/MicroHs/Ident.hs
+++ b/src/MicroHs/Ident.hs
@@ -28,10 +28,10 @@
type Col = Int
type Loc = (Line, Col)
-data SLoc = SLoc FilePath Line Col
+data SLoc = SLoc !FilePath !Line !Col
--Xderiving (Show, Eq)
-data Ident = Ident SLoc String
+data Ident = Ident !SLoc String
--deriving (Show)
--Winstance NFData Ident where rnf (Ident _ s) = rnf s
--
⑨