projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a50ddaa
)
Also export lines, words, unlines and unwords from Data.String
author
Bas van Dijk
<v.dijk.bas@gmail.com>
Mon, 18 Oct 2010 21:03:17 +0000
(21:03 +0000)
committer
Bas van Dijk
<v.dijk.bas@gmail.com>
Mon, 18 Oct 2010 21:03:17 +0000
(21:03 +0000)
Data/String.hs
patch
|
blob
|
history
diff --git
a/Data/String.hs
b/Data/String.hs
index
4245fa2
..
c2dc17e
100644
(file)
--- a/
Data/String.hs
+++ b/
Data/String.hs
@@
-9,19
+9,27
@@
-- Stability : experimental
-- Portability : portable
--
-- Stability : experimental
-- Portability : portable
--
--- Things related to the String type.
+-- The @String@ type and associated operations.
--
-----------------------------------------------------------------------------
module Data.String (
String
, IsString(..)
--
-----------------------------------------------------------------------------
module Data.String (
String
, IsString(..)
+
+ -- * Functions on strings
+ , lines
+ , words
+ , unlines
+ , unwords
) where
#ifdef __GLASGOW_HASKELL__
import GHC.Base
#endif
) where
#ifdef __GLASGOW_HASKELL__
import GHC.Base
#endif
+import Data.List (lines, words, unlines, unwords)
+
-- | Class for string-like datastructures; used by the overloaded string
-- extension (-foverloaded-strings in GHC).
class IsString a where
-- | Class for string-like datastructures; used by the overloaded string
-- extension (-foverloaded-strings in GHC).
class IsString a where