summaryrefslogtreecommitdiff
path: root/lc
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-04-25 11:16:09 +0200
committerPéter Diviánszky <divipp@gmail.com>2016-04-25 11:16:09 +0200
commit9d53a4f86a37043d07cd7b288914eaecf4104e25 (patch)
treea4be1ae0263ac8b527c18d36d5b3419432e74203 /lc
parentb3e157965b055d879c8f5e9a1a73a803d2ea2734 (diff)
cleanup
Diffstat (limited to 'lc')
-rw-r--r--lc/Prelude.lc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lc/Prelude.lc b/lc/Prelude.lc
index 11cfc4ab..aa065096 100644
--- a/lc/Prelude.lc
+++ b/lc/Prelude.lc
@@ -129,8 +129,8 @@ data RecordC (xs :: [RecItem])
129isKeyC _ _ [] = 'Empty "" 129isKeyC _ _ [] = 'Empty ""
130isKeyC s t (RecItem s' t': ss) = if s == s' then t ~ t' else isKeyC s t ss 130isKeyC s t (RecItem s' t': ss) = if s == s' then t ~ t' else isKeyC s t ss
131 131
132fstTup (HCons a _) = a 132fstTup = hlistConsCase _ (\a _ -> a)
133sndTup (HCons _ a) = a 133sndTup = hlistConsCase _ (\_ a -> a)
134 134
135-- todo: don't use unsafeCoerce 135-- todo: don't use unsafeCoerce
136project :: forall a (xs :: [RecItem]) . forall (s :: String) -> isKeyC s a xs => RecordC xs -> a 136project :: forall a (xs :: [RecItem]) . forall (s :: String) -> isKeyC s a xs => RecordC xs -> a