Skip to content

Commit d7291b3

Browse files
authored
Merge pull request #26 from mlabs-haskell/compiler/common-types-kind-checker
KC: Integrate Common Validated Proto Types
2 parents 3895701 + d3e7612 commit d7291b3

File tree

10 files changed

+651
-420
lines changed

10 files changed

+651
-420
lines changed

lambda-buffers-compiler/lambda-buffers-compiler.cabal

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ common common-language
4848
FlexibleInstances
4949
ForeignFunctionInterface
5050
GADTSyntax
51+
GeneralizedNewtypeDeriving
5152
HexFloatLiterals
5253
ImportQualifiedPost
5354
InstanceSigs
@@ -64,6 +65,7 @@ common common-language
6465
PolyKinds
6566
PostfixOperators
6667
RankNTypes
68+
RecordWildCards
6769
RelaxedPolyRec
6870
ScopedTypeVariables
6971
StandaloneDeriving
@@ -79,15 +81,19 @@ common common-language
7981

8082
default-language: Haskell2010
8183

84+
common common-imports
85+
build-depends:
86+
, base >=4.16
87+
, lens >=5.2
88+
8289
library
8390
import: common-language
91+
import: common-imports
8492
build-depends:
85-
, base >=4.16
86-
, containers >=0.6
93+
, containers >=0.6.5.1
8794
, freer-simple >=1.2
8895
, generic-lens >=2.2
8996
, lambda-buffers-compiler-pb >=0.1.0.0
90-
, lens >=5.2
9197
, mtl >=2.2
9298
, parsec >=3.1
9399
, prettyprinter >=1.7
@@ -96,7 +102,11 @@ library
96102

97103
exposed-modules:
98104
LambdaBuffers.Compiler.KindCheck
105+
LambdaBuffers.Compiler.KindCheck.Context
99106
LambdaBuffers.Compiler.KindCheck.Inference
107+
LambdaBuffers.Compiler.KindCheck.Kind
108+
LambdaBuffers.Compiler.KindCheck.Type
109+
LambdaBuffers.Compiler.KindCheck.Variable
100110
LambdaBuffers.Compiler.NamingCheck
101111
LambdaBuffers.Compiler.ProtoCompat
102112
LambdaBuffers.Compiler.ProtoCompat.Types
@@ -106,13 +116,12 @@ library
106116

107117
executable lambda-buffers-compiler-cli
108118
import: common-language
119+
import: common-imports
109120
main-is: Main.hs
110121
build-depends:
111-
, base >=4.16
112122
, bytestring >=0.11
113123
, lambda-buffers-compiler
114124
, lambda-buffers-compiler-pb >=0.1.0.0
115-
, lens >=5.2
116125
, optparse-applicative >=0.17
117126
, proto-lens >=0.7
118127
, text >=1.2
@@ -122,14 +131,13 @@ executable lambda-buffers-compiler-cli
122131

123132
test-suite tests
124133
import: common-language
134+
import: common-imports
125135
type: exitcode-stdio-1.0
126136
hs-source-dirs: test
127137
main-is: Test.hs
128138
build-depends:
129-
, base >=4.16
130139
, lambda-buffers-compiler
131140
, lambda-buffers-compiler-pb >=0.1
132-
, lens >=5.2
133141
, proto-lens >=0.7
134142
, tasty >=1.4
135143
, tasty-hunit >=0.10

0 commit comments

Comments
 (0)