Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CoPaR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Informatik 8
CoPaR
Commits
9c7f1d17
Commit
9c7f1d17
authored
6 years ago
by
Hans-Peter Deifel
Browse files
Options
Downloads
Patches
Plain Diff
Remove some commented out code
parent
2a872a2a
No related branches found
No related tags found
1 merge request
!5
Features/true monoids
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/MA/Functors/MonoidValuedSpec.hs
+1
-71
1 addition, 71 deletions
tests/MA/Functors/MonoidValuedSpec.hs
with
1 addition
and
71 deletions
tests/MA/Functors/MonoidValuedSpec.hs
+
1
−
71
View file @
9c7f1d17
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
module
MA.Functors.MonoidValuedSpec
(
spec
)
where
import
Test.Hspec
...
...
@@ -166,74 +167,3 @@ maxRealRefineSpec = describe "maxReal refine" $ do
encoding
::
[
h1
]
->
[(
Int
,
l
,
Int
)]
->
Encoding
l
h1
encoding
h1
es
=
Encoding
.
new
(
V
.
fromList
h1
)
(
V
.
fromList
(
map
toEdge
es
))
where
toEdge
(
from
,
lab
,
to
)
=
Encoding
.
Edge
from
lab
to
-- mkPoly :: [[Factor a]] -> Polynomial a
-- mkPoly =
-- Polynomial . Sum . NonEmpty.fromList . map (Product . NonEmpty.fromList)
-- type Suitable f = ( Functor f
-- , ParseMorphism f
-- , Show (Label f)
-- , Show (H1 f)
-- , Eq (Label f)
-- , Eq (H1 f)
-- , Typeable (Label f)
-- , Typeable (H1 f)
-- , Show1 f
-- )
-- data SomeFunctor a where
-- SomeFunctor
-- :: Suitable f
-- => f a
-- -> SomeFunctor a
-- deriving instance Functor SomeFunctor
-- instance Show1 SomeFunctor where
-- liftShowsPrec f fl i (SomeFunctor inner) = liftShowsPrec f fl i inner
-- instance Eq1 SomeFunctor where
-- liftEq f (SomeFunctor a) (SomeFunctor b) = liftEq f a b
-- data SomeLabel where
-- SomeLabel
-- :: forall l. (Show l, Eq l, Typeable l)
-- => l
-- -> SomeLabel
-- deriving instance Show SomeLabel
-- instance Eq SomeLabel where
-- (SomeLabel (a :: ta)) == (SomeLabel (b :: tb)) =
-- case eqTypeRep (typeRep @ta) (typeRep @tb) of
-- Nothing -> False
-- Just HRefl -> a == b
-- data SomeH1 where
-- SomeH1 :: forall h. (Show h, Eq h, Typeable h) => h -> SomeH1
-- deriving instance Show SomeH1
-- instance Eq SomeH1 where
-- (SomeH1 (a :: ta)) == (SomeH1 (b :: tb)) =
-- case eqTypeRep (typeRep @ta) (typeRep @tb) of
-- Nothing -> False
-- Just HRefl -> a == b
-- type instance H1 SomeFunctor = SomeH1
-- type instance Label SomeFunctor = SomeLabel
-- instance ParseMorphism SomeFunctor where
-- parseMorphismPoint (SomeFunctor f) = do
-- convertOuter (parseMorphismPoint f)
-- where
-- convertOuter =
-- fmap (\(h1, succs) -> (SomeH1 h1, fmap (_2 %~ SomeLabel) succs))
-- someFunctor
-- :: (Suitable f, Typeable f, ParseMorphism f)
-- => FunctorDescription f
-- -> FunctorDescription SomeFunctor
-- someFunctor fd =
-- fd { functorExprParser = transParser SomeFunctor (functorExprParser fd) }
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