Skip to content
Snippets Groups Projects
Commit 6e929b4b authored by stuebinm's avatar stuebinm
Browse files

playing around with types

parent c9c472a3
No related branches found
No related tags found
No related merge requests found
{-# 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
...@@ -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
......
...@@ -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
......
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment