Skip to content

Commit 56ea397

Browse files
author
Thomas Mahler
committed
simplify
1 parent c4adbce commit 56ea397

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

src/CCC/Interpreter.hs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
{-# LANGUAGE FlexibleContexts #-}
2-
{-# LANGUAGE GADTs #-}
3-
{-# LANGUAGE PartialTypeSignatures #-}
4-
{-# LANGUAGE ScopedTypeVariables #-}
1+
{-# LANGUAGE GADTs #-}
52

63
{-- | Semantic interpretation of categorical expressions (CatExpr) to functions.
74
Interprets a CatExpr morphism as a function in the (->) category.
@@ -13,11 +10,10 @@
1310

1411
module CCC.Interpreter (interp) where
1512

16-
import CCC.Cat (BoolCat (andC, ifTE, notC, orC),
13+
import CCC.Cat (BoolCat (andC, notC, orC),
1714
BoolLike (false, true), Cartesian (dupC),
1815
EqCat (eqlC), Monoidal (parC),
19-
NumCat (addC, geqC, greC, leqC, lesC, mulC, subC),
20-
applyC)
16+
NumCat (addC, geqC, greC, leqC, lesC, mulC, subC))
2117
import CCC.CatExpr (CatExpr (..))
2218
import CCC.Hask ()
2319

src/CCC/Rewrite.hs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,10 @@ ruleParDupEq (Comp (Par f g) Dup) | f == g = Just (Dup . f)
5252
ruleParDupEq _ = Nothing
5353
--}
5454

55-
-- build the curry rules.
5655
ruleCurry :: Rule
5756
ruleCurry (Curry (Uncurry f)) = Just f
5857
ruleCurry _ = Nothing
5958

60-
ruleCurry' :: Rule
61-
ruleCurry' _ = Nothing
62-
6359
ruleCurryApply :: Rule
6460
ruleCurryApply (Curry Apply) = Just Id
6561
ruleCurryApply _ = Nothing
@@ -83,7 +79,6 @@ allRules =
8379
ruleParDup',
8480
ruleParDup'',
8581
ruleCurry,
86-
ruleCurry',
8782
ruleCurryApply,
8883
ruleParen
8984
]

0 commit comments

Comments
 (0)