Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
head.hackage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Show more breadcrumbs
Ellie Hermaszewska
head.hackage
Commits
8f3af33e
Commit
8f3af33e
authored
5 years ago
by
Ryan Scott
Browse files
Options
Downloads
Patches
Plain Diff
Add data-r-tree, obdd, tpdb patches
parent
4bc62a23
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
patches/data-r-tree-0.6.0.patch
+33
-0
33 additions, 0 deletions
patches/data-r-tree-0.6.0.patch
patches/obdd-0.8.2.patch
+15
-0
15 additions, 0 deletions
patches/obdd-0.8.2.patch
patches/tpdb-2.2.0.patch
+33
-0
33 additions, 0 deletions
patches/tpdb-2.2.0.patch
with
81 additions
and
0 deletions
patches/data-r-tree-0.6.0.patch
0 → 100644
+
33
−
0
View file @
8f3af33e
diff --git a/Data/RTree/Base.hs b/Data/RTree/Base.hs
index 36c041b..9df462f 100644
--- a/Data/RTree/Base.hs
+++ b/Data/RTree/Base.hs
@@ -83,11 +83,11 @@
import Prelude hiding (length, lookup, map, null)
import Data.RTree.MBB hiding (mbb)
data RTree a =
- Node4 {getMBB :: {-# UNPACK #-} ! MBB, getC1 :: ! (RTree a), getC2 :: ! (RTree a), getC3 :: ! (RTree a), getC4 :: ! (RTree a) }
- | Node3 {getMBB :: {-# UNPACK #-} ! MBB, getC1 :: ! (RTree a), getC2 :: ! (RTree a), getC3 :: ! (RTree a) }
- | Node2 {getMBB :: {-# UNPACK #-} ! MBB, getC1 :: ! (RTree a), getC2 :: ! (RTree a) }
+ Node4 {getMBB :: {-# UNPACK #-} !MBB, getC1 :: !(RTree a), getC2 :: !(RTree a), getC3 :: !(RTree a), getC4 :: !(RTree a) }
+ | Node3 {getMBB :: {-# UNPACK #-} !MBB, getC1 :: !(RTree a), getC2 :: !(RTree a), getC3 :: !(RTree a) }
+ | Node2 {getMBB :: {-# UNPACK #-} !MBB, getC1 :: !(RTree a), getC2 :: !(RTree a) }
| Node {getMBB :: MBB, getChildren' :: [RTree a] }
- | Leaf {getMBB :: {-# UNPACK #-} ! MBB, getElem :: a}
+ | Leaf {getMBB :: {-# UNPACK #-} !MBB, getElem :: a}
| Empty
deriving (Show, Eq, Typeable, Generic, Functor)
diff --git a/Data/RTree/MBB.hs b/Data/RTree/MBB.hs
index 03548dd..209cc7d 100644
--- a/Data/RTree/MBB.hs
+++ b/Data/RTree/MBB.hs
@@ -34,7 +34,7 @@
import Data.Binary
import GHC.Generics (Generic)
-- | Minimal bounding box
-data MBB = MBB {getUlx :: {-# UNPACK #-} ! Double, getUly :: {-# UNPACK #-} ! Double, getBrx :: {-# UNPACK #-} ! Double, getBry :: {-# UNPACK #-} ! Double}
+data MBB = MBB {getUlx :: {-# UNPACK #-} !Double, getUly :: {-# UNPACK #-} !Double, getBrx :: {-# UNPACK #-} !Double, getBry :: {-# UNPACK #-} !Double}
deriving (Eq, Generic, Ord)
-- | created a minimal bounding box (or a rectangle)
This diff is collapsed.
Click to expand it.
patches/obdd-0.8.2.patch
0 → 100644
+
15
−
0
View file @
8f3af33e
diff --git a/src/OBDD/Data.hs b/src/OBDD/Data.hs
index 6484d78..da9df16 100644
--- a/src/OBDD/Data.hs
+++ b/src/OBDD/Data.hs
@@ -72,8 +72,8 @@
data OBDD v = OBDD
-- , icore :: !(Map ( Node v Index ) Index)
, icore :: !(VarIntIntMap v Index)
- , ifalse :: ! Index
- , itrue :: ! Index
+ , ifalse :: !Index
+ , itrue :: !Index
, next :: !Index
, top :: !Index
}
This diff is collapsed.
Click to expand it.
patches/tpdb-2.2.0.patch
0 → 100644
+
33
−
0
View file @
8f3af33e
diff --git a/src/TPDB/Data.hs b/src/TPDB/Data.hs
index 2d4b88e..4a6dfd5 100644
--- a/src/TPDB/Data.hs
+++ b/src/TPDB/Data.hs
@@ -32,8 +32,8 @@
import qualified Data.Text as T
import qualified Data.Set as S
data Identifier =
- Identifier { _identifier_hash :: ! Int
- , name :: ! T.Text
+ Identifier { _identifier_hash :: !Int
+ , name :: !T.Text
, arity :: Int
}
deriving ( Eq, Ord, Typeable )
diff --git a/src/TPDB/XTC/Read.hs b/src/TPDB/XTC/Read.hs
index ff0c889..482df5f 100644
--- a/src/TPDB/XTC/Read.hs
+++ b/src/TPDB/XTC/Read.hs
@@ -35,11 +35,11 @@
readProblemT t = case ( getProblem . fromDocument ) <$> Text.XML.parseText Text.
getProblem :: Cursor -> [ Problem Identifier Identifier ]
getProblem = element "problem" >=> \ c -> do
- let ! ty = case c $| attribute "type" of
+ let !ty = case c $| attribute "type" of
[ "termination" ] -> Termination
[ "complexity" ] -> Complexity
_ -> error "type"
- let ! st = case c $/ element "strategy" &/ content of
+ let !st = case c $/ element "strategy" &/ content of
[ "FULL" ] -> Just Full
[ "INNERMOST" ] -> Just Innermost
[ "OUTERMOST" ] -> Just Outermost
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