Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
dph
Commits
58717f1a
Commit
58717f1a
authored
Mar 27, 2007
by
rl@cse.unsw.edu.au
Browse files
Rebox instance for EitherS
parent
2195f269
Changes
1
Hide whitespace changes
Inline
Side-by-side
Data/Array/Parallel/Base/Rebox.hs
View file @
58717f1a
...
...
@@ -70,6 +70,15 @@ instance (Rebox a, Rebox b) => Rebox (a :*: b) where
{-# INLINE [0] dseq #-}
dseq
(
x
:*:
y
)
z
=
dseq
x
(
dseq
y
z
)
instance
(
Rebox
a
,
Rebox
b
)
=>
Rebox
(
EitherS
a
b
)
where
{-# INLINE [0] rebox #-}
rebox
(
LeftS
x
)
=
LeftS
(
rebox
x
)
rebox
(
RightS
y
)
=
RightS
(
rebox
y
)
{-# INLINE [0] dseq #-}
dseq
(
LeftS
x
)
z
=
dseq
x
z
dseq
(
RightS
y
)
z
=
dseq
y
z
instance
Rebox
a
=>
Rebox
(
MaybeS
a
)
where
{-# INLINE [0] rebox #-}
rebox
NothingS
=
NothingS
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment