Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tim Steenvoorden
clean-base
Commits
7a36b0fe
Commit
7a36b0fe
authored
Mar 04, 2016
by
Tim Steenvoorden
Browse files
triv
parent
a9658c12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Sources/Control/Sliceable.dcl
View file @
7a36b0fe
...
...
@@ -4,9 +4,9 @@ from Data.Nat import :: Nat
from
Data
.
Range
import
::
Range
from
Data
.
Maybe
import
::
Maybe
from
Algebra
.
Order
import
class
Eq
from
Control
.
Foldable
import
class
Foldable
from
Algebra
.
Order
import
class
Eq
from
Algebra
.
Group
import
class
Semigroup
,
class
Monoid
/// # Class
...
...
@@ -49,4 +49,3 @@ span :: (a -> Bool) (s a) -> ((s a), (s a)) | Sliceable s a
isPrefixOf
::
(
s
a
)
(
s
a
)
->
Bool
|
Sliceable
s
a
&
Eq
(
s
a
)
isSuffixOf
::
(
s
a
)
(
s
a
)
->
Bool
|
Sliceable
s
a
&
Eq
(
s
a
)
// isInfixOf :: (s a) (s a) -> Bool | Sliceable s a & Eq (s a)
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