1 {-# OPTIONS_GHC -fno-implicit-prelude #-}
2 -----------------------------------------------------------------------------
4 -- Module : Data.String
5 -- Copyright : (c) The University of Glasgow 2007
6 -- License : BSD-style (see the file libraries/base/LICENSE)
8 -- Maintainer : libraries@haskell.org
9 -- Stability : experimental
10 -- Portability : portable
12 -- Things related to the String type.
14 -----------------------------------------------------------------------------
20 #ifdef __GLASGOW_HASKELL__
24 -- | Class for string-like datastructures; used by the overloaded string
25 -- extension (-foverloaded-strings in GHC).
26 class IsString a where
27 fromString :: String -> a
29 instance IsString [Char] where