Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
c3de04a3
Commit
c3de04a3
authored
May 25, 2015
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some formatting of IHaskellPrelude
parent
c0d0496e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
IHaskellPrelude.hs
src/IHaskellPrelude.hs
+13
-11
No files found.
src/IHaskellPrelude.hs
View file @
c3de04a3
...
...
@@ -79,14 +79,14 @@ import GHC.Num as X
import
GHC.Real
as
X
import
GHC.Base
as
X
hiding
(
Any
)
import
Data.List
as
X
hiding
(
head
,
last
,
tail
,
init
,
transpose
,
subsequences
,
permutations
,
foldl
,
foldl1
,
maximum
,
minimum
,
scanl
,
scanl1
,
scanr
,
scanr1
,
span
,
break
,
mapAccumL
,
mapAccumR
,
dropWhileEnd
,
(
!!
),
elemIndices
,
elemInd
ex
,
findIndex
,
findIndices
,
zip5
,
zip6
,
zip7
,
zipWith5
,
zip
With6
,
zipWith7
,
unzip5
,
unzip6
,
unzip6
,
delete
,
union
,
lookup
,
intersect
,
insert
,
deleteBy
,
deleteFirstBy
,
union
By
,
intersectBy
,
group
,
groupBy
,
insertBy
,
maximumBy
,
minimum
By
,
genericLength
,
genericDrop
,
genericTake
,
genericSplitAt
,
genericIndex
,
genericReplicate
,
inits
,
tails
)
foldl
,
foldl1
,
maximum
,
minimum
,
scanl
,
scanl1
,
scanr
,
scanr1
,
span
,
break
,
mapAccumL
,
mapAccumR
,
dropWhileEnd
,
(
!!
)
,
elemInd
ices
,
elemIndex
,
findIndex
,
findIndices
,
zip5
,
zip6
,
zip
7
,
zipWith5
,
zipWith6
,
zipWith7
,
unzip5
,
unzip6
,
unzip6
,
delete
,
union
,
lookup
,
intersect
,
insert
,
delete
By
,
deleteFirstBy
,
unionBy
,
intersectBy
,
group
,
groupBy
,
insert
By
,
maximumBy
,
minimumBy
,
genericLength
,
genericDrop
,
genericTake
,
generic
SplitAt
,
generic
Index
,
genericReplicate
,
inits
,
tails
)
import
qualified
Control.Applicative
import
qualified
Data.Typeable
...
...
@@ -109,10 +109,12 @@ import qualified Data.List
import
qualified
Prelude
as
P
type
LByteString
=
Data
.
ByteString
.
Lazy
.
ByteString
type
LText
=
Data
.
Text
.
Lazy
.
Text
(
headMay
,
tailMay
,
lastMay
,
initMay
,
maximumMay
,
minimumMay
)
=
(
wrapEmpty
head
,
wrapEmpty
tail
,
wrapEmpty
last
,
wrapEmpty
init
,
wrapEmpty
maximum
,
wrapEmpty
minimum
)
(
wrapEmpty
head
,
wrapEmpty
tail
,
wrapEmpty
last
,
wrapEmpty
init
,
wrapEmpty
maximum
,
wrapEmpty
minimum
)
where
wrapEmpty
::
([
a
]
->
b
)
->
[
a
]
->
Maybe
b
wrapEmpty
_
[]
=
Nothing
...
...
@@ -127,7 +129,7 @@ minimumByMay _ [] = Nothing
minimumByMay
f
xs
=
Just
(
Data
.
List
.
minimumBy
f
xs
)
readMay
::
Read
a
=>
String
->
Maybe
a
readMay
=
fmap
fst
.
headMay
.
reads
readMay
=
fmap
fst
.
headMay
.
reads
putStrLn
::
(
MonadIO
m
)
=>
String
->
m
()
putStrLn
=
liftIO
.
P
.
putStrLn
...
...
@@ -135,7 +137,7 @@ putStrLn = liftIO . P.putStrLn
putStr
::
(
MonadIO
m
)
=>
String
->
m
()
putStr
=
liftIO
.
P
.
putStr
putChar
::
MonadIO
m
=>
Char
->
m
()
putChar
::
MonadIO
m
=>
Char
->
m
()
putChar
=
liftIO
.
P
.
putChar
print
::
(
MonadIO
m
,
Show
a
)
=>
a
->
m
()
...
...
Write
Preview
Markdown
is supported
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