Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
walint
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
hub
walint
Commits
6e929b4b
Commit
6e929b4b
authored
3 years ago
by
stuebinm
Browse files
Options
Downloads
Patches
Plain Diff
playing around with types
parent
c9c472a3
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
lib/KindLinter.hs
+29
-0
29 additions, 0 deletions
lib/KindLinter.hs
stack.yaml
+1
-0
1 addition, 0 deletions
stack.yaml
stack.yaml.lock
+7
-0
7 additions, 0 deletions
stack.yaml.lock
walint.cabal
+3
-1
3 additions, 1 deletion
walint.cabal
with
40 additions
and
1 deletion
lib/KindLinter.hs
0 → 100644
+
29
−
0
View file @
6e929b4b
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE TypeApplications #-}
module
KindLinter
where
import
Data.Map.Strict
import
Data.HList
import
GHC.TypeLits
(
Symbol
,
KnownSymbol
)
func
::
a
->
HList
[
Int
,
String
]
func
_
=
hBuild
10
"test"
field
::
forall
a
.
KnownSymbol
a
=>
Label
a
field
=
Label
record
=
Label
@
"test"
.=.
10
.*.
field
@
"x"
.=.
20
.*.
emptyRecord
-- TODO: these should be limited to Tagged "symbol" (LintWriter a)
tileLints
=
field
@
"test"
.=.
(
\
a
->
a
)
.*.
emptyRecord
This diff is collapsed.
Click to expand it.
stack.yaml
+
1
−
0
View file @
6e929b4b
...
@@ -41,6 +41,7 @@ extra-deps:
...
@@ -41,6 +41,7 @@ extra-deps:
-
semialign-1.2.0.1@sha256:5efc30d6f53f8d2a8a26d9bf3a57c0f20f4ba3086797ccaa615f644abc21d42e,2814
-
semialign-1.2.0.1@sha256:5efc30d6f53f8d2a8a26d9bf3a57c0f20f4ba3086797ccaa615f644abc21d42e,2814
-
text-short-0.1.4@sha256:4f7a76e78baf391d262883007e8f8d8fb23a2805d56d9725d6abdf1428542e11,3575
-
text-short-0.1.4@sha256:4f7a76e78baf391d262883007e8f8d8fb23a2805d56d9725d6abdf1428542e11,3575
-
time-compat-1.9.6.1@sha256:381a2e8ed6e41d20ff5929d12d25c1d9337d459de5964ef1d90b06d115b31f07,5033
-
time-compat-1.9.6.1@sha256:381a2e8ed6e41d20ff5929d12d25c1d9337d459de5964ef1d90b06d115b31f07,5033
-
HList-0.5.1.0@sha256:3ecb2d10ad2b3d36ad28e2f08505f9c3d7143ca737ef13b3e64db503635966c2,7525
allow-newer
:
true
allow-newer
:
true
# - acme-missiles-0.3
# - acme-missiles-0.3
...
...
This diff is collapsed.
Click to expand it.
stack.yaml.lock
+
7
−
0
View file @
6e929b4b
...
@@ -39,6 +39,13 @@ packages:
...
@@ -39,6 +39,13 @@ packages:
sha256: dd54303f712dd2b8dc05942061921b0d06e0bd501b42c965a9ac6a0a37cd3128
sha256: dd54303f712dd2b8dc05942061921b0d06e0bd501b42c965a9ac6a0a37cd3128
original:
original:
hackage: time-compat-1.9.6.1@sha256:381a2e8ed6e41d20ff5929d12d25c1d9337d459de5964ef1d90b06d115b31f07,5033
hackage: time-compat-1.9.6.1@sha256:381a2e8ed6e41d20ff5929d12d25c1d9337d459de5964ef1d90b06d115b31f07,5033
- completed:
hackage: HList-0.5.1.0@sha256:3ecb2d10ad2b3d36ad28e2f08505f9c3d7143ca737ef13b3e64db503635966c2,7525
pantry-tree:
size: 5800
sha256: fe9d53555847bd16ffd46e3fb6013751c23f375a95d05b4d4c8de0bb22911e72
original:
hackage: HList-0.5.1.0@sha256:3ecb2d10ad2b3d36ad28e2f08505f9c3d7143ca737ef13b3e64db503635966c2,7525
snapshots:
snapshots:
- completed:
- completed:
size: 586286
size: 586286
...
...
This diff is collapsed.
Click to expand it.
walint.cabal
+
3
−
1
View file @
6e929b4b
...
@@ -41,6 +41,7 @@ library
...
@@ -41,6 +41,7 @@ library
Badges
Badges
LayerData
LayerData
Dirgraph
Dirgraph
KindLinter
build-depends: base,
build-depends: base,
aeson,
aeson,
bytestring,
bytestring,
...
@@ -58,7 +59,8 @@ library
...
@@ -58,7 +59,8 @@ library
dotgen,
dotgen,
text-metrics,
text-metrics,
uri-encode,
uri-encode,
network-uri
network-uri,
HList
-- TODO: move more stuff into lib, these dependencies are silly
-- TODO: move more stuff into lib, these dependencies are silly
executable walint
executable walint
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment