Permalink
Browse files

Updated $setup blocks

  • Loading branch information...
1 parent f12897e commit bd14250427202fe5b90b31166fa92e332c3c0bef @ekmett committed Jan 26, 2013
@@ -91,8 +91,8 @@ import Data.Set as Set
import Data.Tagged
-- $setup
+-- >>> :set -XNoOverloadedStrings
-- >>> import Control.Lens
--- >>> import Data.Foldable
-- | 'Wrapped' provides isomorphisms to wrap and unwrap newtypes or
-- data types with one constructor.
View
@@ -25,6 +25,7 @@ import Data.Functor
import Data.Word
-- $setup
+-- >>> :set -XNoOverloadedStrings
-- >>> import Data.Word
infixr 4 .|.~, .&.~, <.|.~, <.&.~
View
@@ -25,7 +25,8 @@ import Data.HashSet as HashSet
import Data.Hashable
-- $setup
--- >>> :m + Data.HashSet Control.Lens
+-- >>> :set -XNoOverloadedStrings
+-- >>> import Control.Lens
-- | This 'Setter' can be used to change the type of a 'HashSet' by mapping
-- the elements to new values.
View
@@ -19,7 +19,8 @@ import Control.Lens
import Data.IntSet as IntSet
-- $setup
--- >>> :m + Data.IntSet.Lens Control.Lens
+-- >>> :set -XNoOverloadedStrings
+-- >>> import Control.Lens
-- | IntSet isn't Foldable, but this 'Fold' can be used to access the members of an 'IntSet'.
--
View
@@ -19,8 +19,10 @@ import Control.Lens.Setter ( setting )
import Control.Lens.Type
import Data.Set as Set
+
-- $setup
--- >>> :m + Data.Set.Lens Control.Lens
+-- >>> :set -XNoOverloadedStrings
+-- >>> import Control.Lens
-- | This 'Setter' can be used to change the type of a 'Set' by mapping
-- the elements to new values.
View
@@ -15,6 +15,9 @@ import Data.Char (chr, ord, isAsciiLower, isAsciiUpper, isDigit)
import Data.Maybe (fromMaybe)
import Numeric (readInt, showIntAtBase)
+-- $setup
+-- >>> :set -XNoOverloadedStrings
+
-- | This 'Prism' extracts can be used to model the fact that every 'Integral'
-- type is a subset of 'Integer'.
--
@@ -28,6 +28,9 @@ import System.FilePath
import Control.Lens hiding ((<.>))
+-- $setup
+-- >>> :set -XNoOverloadedStrings
+
infixr 4 </>~, <</>~, <.>~, <<.>~
infix 4 </>=, <</>=, <.>=, <<.>=

0 comments on commit bd14250

Please sign in to comment.