Export String from Data.String
[ghc-base.git] / Data / String.hs
1 {-# OPTIONS_GHC -XNoImplicitPrelude #-}
2 -----------------------------------------------------------------------------
3 -- |
4 -- Module      :  Data.String
5 -- Copyright   :  (c) The University of Glasgow 2007
6 -- License     :  BSD-style (see the file libraries/base/LICENSE)
7 --
8 -- Maintainer  :  libraries@haskell.org
9 -- Stability   :  experimental
10 -- Portability :  portable
11 --
12 -- Things related to the String type.
13 --
14 -----------------------------------------------------------------------------
15
16 module Data.String (
17    String
18  , IsString(..)
19  ) where
20
21 #ifdef __GLASGOW_HASKELL__
22 import GHC.Base
23 #endif
24
25 -- | Class for string-like datastructures; used by the overloaded string
26 --   extension (-foverloaded-strings in GHC).
27 class IsString a where
28     fromString :: String -> a
29
30 instance IsString [Char] where
31     fromString xs = xs
32