@@ -43,6 +43,13 @@ common common-settings
4343 -Wpartial-fields
4444 -Werror=missing-home-modules
4545
46+ library utils
47+ import : common-settings
48+ visibility : private
49+ exposed-modules : Utils
50+ hs-source-dirs : lib
51+ build-depends : base >= 2 && < 5 , these, semialign
52+
4653library test-harness
4754 import : common-settings
4855 visibility : private
@@ -108,70 +115,70 @@ executable 00-SimplyTypedEvaluation
108115 import : common-settings
109116 main-is : 00-SimplyTypedEvaluation.hs
110117 hs-source-dirs : main
111- build-depends : base >= 2 && < 5 , mtl, transformers, containers
118+ build-depends : base >= 2 && < 5 , mtl, transformers, containers, utils
112119
113120executable 01-BidirectionalTypechecking
114121 import : common-settings
115122 main-is : 01-BidirectionalTypechecking.hs
116123 hs-source-dirs : main
117- build-depends : base >= 2 && < 5 , mtl, transformers, containers, test-harness
124+ build-depends : base >= 2 && < 5 , mtl, transformers, containers, test-harness, utils
118125
119126executable 02-NormalizationByEvaluation
120127 import : common-settings
121128 main-is : 02-NormalizationByEvaluation.hs
122129 hs-source-dirs : main
123- build-depends : base >= 2 && < 5 , mtl, transformers, containers, test-harness
130+ build-depends : base >= 2 && < 5 , mtl, transformers, containers, test-harness, utils
124131
125132executable 03-Elaboration
126133 import : common-settings
127134 main-is : 03-Elaboration.hs
128135 hs-source-dirs : main
129- build-depends : base >= 2 && < 5 , mtl, transformers, containers, test-harness
136+ build-depends : base >= 2 && < 5 , mtl, transformers, containers, test-harness, utils
130137
131138executable 04-TypedHoles
132139 import : common-settings
133140 main-is : 04-TypedHoles.hs
134141 hs-source-dirs : main
135- build-depends : base >= 2 && < 5 , mtl, transformers, containers, test-harness
142+ build-depends : base >= 2 && < 5 , mtl, transformers, containers, test-harness, utils
136143
137144executable 05-SystemT
138145 import : common-settings
139146 main-is : 05-SystemT.hs
140147 hs-source-dirs : main
141- build-depends : base >= 2 && < 5 , mtl, transformers, containers, test-harness
148+ build-depends : base >= 2 && < 5 , mtl, transformers, containers, test-harness, utils
142149
143150executable 06-Records
144151 import : common-settings
145152 main-is : 06-Records.hs
146153 hs-source-dirs : main
147- build-depends : base >= 2 && < 5 , mtl, transformers, containers, these, semialign, test-harness
154+ build-depends : base >= 2 && < 5 , mtl, transformers, containers, these, semialign, test-harness, utils
148155
149156executable 07-SumTypes
150157 import : common-settings
151158 main-is : 07-SumTypes.hs
152159 hs-source-dirs : main
153- build-depends : base >= 2 && < 5 , mtl, transformers, containers, these, semialign, test-harness
160+ build-depends : base >= 2 && < 5 , mtl, transformers, containers, these, semialign, test-harness, utils
154161
155162executable 08-Subtyping
156163 import : common-settings
157164 main-is : 08-Subtyping.hs
158165 hs-source-dirs : main
159- build-depends : base >= 2 && < 5 , mtl, transformers, containers, these, semialign, scientific, test-harness
166+ build-depends : base >= 2 && < 5 , mtl, transformers, containers, these, semialign, scientific, test-harness, utils
160167
161168executable 09-NominalInductiveTypes
162169 import : common-settings
163170 main-is : 09-NominalInductiveTypes.hs
164171 hs-source-dirs : main
165- build-depends : base >= 2 && < 5 , mtl, transformers, containers, these, semialign, scientific, test-harness
172+ build-depends : base >= 2 && < 5 , mtl, transformers, containers, these, semialign, scientific, test-harness, utils
166173
167174executable 09b-IsoInductiveTypes
168175 import : common-settings
169176 main-is : 09b-IsoInductiveTypes.hs
170177 hs-source-dirs : main
171- build-depends : base >= 2 && < 5 , mtl, transformers, containers, these, semialign, scientific, test-harness
178+ build-depends : base >= 2 && < 5 , mtl, transformers, containers, these, semialign, scientific, test-harness, utils
172179
173180executable 10-SystemF
174181 import : common-settings
175182 main-is : 10-SystemF.hs
176183 hs-source-dirs : main
177- build-depends : base >= 2 && < 5 , mtl, transformers, containers, these, semialign, scientific, test-harness
184+ build-depends : base >= 2 && < 5 , mtl, transformers, containers, these, semialign, scientific, test-harness, utils
0 commit comments