Skip to content

Commit 2767bdb

Browse files
author
Thomas Mahler
committed
simplify
1 parent 6411e0a commit 2767bdb

2 files changed

Lines changed: 0 additions & 168 deletions

File tree

src/CCC/CCC.hs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@
33
{-# LANGUAGE FlexibleContexts #-}
44
{-# LANGUAGE FlexibleInstances #-}
55
{-# LANGUAGE FunctionalDependencies #-}
6-
{-# LANGUAGE GADTs #-}
76
{-# LANGUAGE NoImplicitPrelude #-}
8-
{-# LANGUAGE PolyKinds #-}
97
{-# LANGUAGE RankNTypes #-}
108
{-# LANGUAGE ScopedTypeVariables #-}
119
{-# LANGUAGE TypeApplications #-}
1210
{-# LANGUAGE TypeFamilies #-}
13-
{-# LANGUAGE TypeOperators #-}
1411
{-# LANGUAGE UndecidableInstances #-}
15-
{-# OPTIONS_GHC -fno-warn-orphans #-}
1612

1713
{-- | Compilation function to transform expressions into closed cartesian category form.
1814
Use CatExpr as a compilation target to produce categorical morphisms.
@@ -24,7 +20,6 @@
2420
module CCC.CCC (toCCC, toCCCRec, Rec(..), fixRec) where
2521

2622
import CCC.Cat
27-
import CCC.Hask ()
2823
import Prelude hiding (id, (.))
2924

3025
-- Newtype wrapper for recursive functions in categorical style
@@ -70,17 +65,6 @@ instance (b ~ out) => EitherTree () b out where
7065
inj x = x
7166
ext x = x
7267

73-
instance (Num b, Num a) => Num (Either a b) where
74-
(Left f) + (Left g) = Left (f + g)
75-
(Right f) + (Right g) = Right (f + g)
76-
(Left f) * (Left g) = Left (f * g)
77-
(Right f) * (Right g) = Right (f * g)
78-
negate f = error "Todo"
79-
f - g = error "todo"
80-
abs f = error "todo"
81-
signum = error "TODO"
82-
fromInteger = error "TODO"
83-
8468
type family Reverse a b where
8569
Reverse (Left a) b = Reverse a (Left b)
8670
Reverse (Right a) b = Reverse a (Right b)

src/CCC/FreeCat.hs

Lines changed: 0 additions & 152 deletions
This file was deleted.

0 commit comments

Comments
 (0)