packages feed

to-string-instances 0.1 → 0.2

raw patch · 2 files changed

+3/−28 lines, 2 filesdep −basedep ~to-string-class

Dependencies removed: base

Dependency ranges changed: to-string-class

Files

Data/String/ToString/Instances.hs view
@@ -1,4 +1,5 @@ {-# LANGUAGE CPP #-}+{-# LANGUAGE NoImplicitPrelude #-}  -------------------------------------------------------------------------------- -- |@@ -10,12 +11,8 @@ -- -- This module exports the following instances for the 'ToString' class: ----- * 'ShowS'--- -- * 'ByteString' ----- * 'DString'--- -- * 'Doc' -- -- * 'Text'@@ -28,10 +25,6 @@  import Data.String.ToString (ToString, toString) -#ifdef SHOWS-import qualified Text.Show-#endif- #ifdef BYTESTRING import qualified Data.ByteString.Char8 #endif@@ -49,11 +42,6 @@ -------------------------------------------------------------------------------- -- ToString instances ----------------------------------------------------------------------------------#ifdef SHOWS-instance ToString Text.Show.ShowS where-    toString s = s []-#endif  #ifdef BYTESTRING instance ToString Data.ByteString.Char8.ByteString where
to-string-instances.cabal view
@@ -1,15 +1,11 @@ Name:               to-string-instances-Version:            0.1+Version:            0.2 Synopsis:           Instances for the ToString class. Description:        This library provides the following instances                     for the ToString class:                     .-                    * ShowS-                    .                     * ByteString                     .-                    * DString-                    .                     * Doc                     .                     * Text@@ -35,10 +31,6 @@   Type:     darcs   Location: http://code.haskell.org/~basvandijk/code/to-string-instances/ -Flag ShowS-  Description: Add ShowS support.-  Default:     True- Flag ByteString   Description: Add ByteString support.   Default:     True@@ -52,14 +44,9 @@   Default:     True  Library-  Build-Depends:   to-string-class == 0.1.*+  Build-Depends:   to-string-class >= 0.1.2 && < 0.1.3   Exposed-modules: Data.String.ToString.Instances   Ghc-options:     -O2 -Wall -fno-warn-orphans--  if flag(ShowS)-    CPP-Options:   -DSHOWS-    Build-Depends: base == 4.*-    Extensions:    TypeSynonymInstances    if flag(ByteString)     CPP-Options:   -DBYTESTRING