text-show 3 → 3.0.1
raw patch · 183 files changed
+371/−187 lines, 183 filesdep ~generic-derivingdep ~ghc-bootdep ~text-show
Dependency ranges changed: generic-deriving, ghc-boot, text-show
Files
- CHANGELOG.md +4/−0
- LICENSE +1/−1
- src/TextShow.hs +1/−1
- src/TextShow/Classes.hs +1/−1
- src/TextShow/Control/Applicative.hs +1/−1
- src/TextShow/Control/Concurrent.hs +1/−1
- src/TextShow/Control/Exception.hs +1/−1
- src/TextShow/Control/Monad/ST.hs +1/−1
- src/TextShow/Data/Array.hs +1/−1
- src/TextShow/Data/Bool.hs +1/−1
- src/TextShow/Data/ByteString.hs +1/−1
- src/TextShow/Data/Char.hs +1/−1
- src/TextShow/Data/Complex.hs +1/−1
- src/TextShow/Data/Data.hs +1/−1
- src/TextShow/Data/Dynamic.hs +1/−1
- src/TextShow/Data/Either.hs +1/−1
- src/TextShow/Data/Fixed.hs +1/−1
- src/TextShow/Data/Floating.hs +1/−1
- src/TextShow/Data/Functor/Compose.hs +1/−1
- src/TextShow/Data/Functor/Identity.hs +1/−1
- src/TextShow/Data/Functor/Product.hs +1/−1
- src/TextShow/Data/Functor/Sum.hs +1/−1
- src/TextShow/Data/Integral.hs +1/−1
- src/TextShow/Data/List.hs +1/−1
- src/TextShow/Data/List/NonEmpty.hs +5/−1
- src/TextShow/Data/Maybe.hs +1/−1
- src/TextShow/Data/Monoid.hs +1/−1
- src/TextShow/Data/OldTypeable.hs +1/−1
- src/TextShow/Data/Ord.hs +1/−1
- src/TextShow/Data/Proxy.hs +1/−1
- src/TextShow/Data/Ratio.hs +1/−1
- src/TextShow/Data/Semigroup.hs +1/−1
- src/TextShow/Data/Text.hs +1/−1
- src/TextShow/Data/Tuple.hs +1/−1
- src/TextShow/Data/Type/Coercion.hs +1/−1
- src/TextShow/Data/Type/Equality.hs +1/−1
- src/TextShow/Data/Typeable.hs +1/−1
- src/TextShow/Data/Typeable/Utils.hs +1/−1
- src/TextShow/Data/Version.hs +1/−1
- src/TextShow/Data/Void.hs +1/−1
- src/TextShow/Debug/Trace.hs +1/−1
- src/TextShow/Debug/Trace/Generic.hs +1/−1
- src/TextShow/Debug/Trace/TH.hs +1/−1
- src/TextShow/Foreign/C/Types.hs +1/−1
- src/TextShow/Foreign/Ptr.hs +1/−1
- src/TextShow/FromStringTextShow.hs +1/−1
- src/TextShow/Functions.hs +1/−1
- src/TextShow/GHC/Conc/Windows.hs +1/−1
- src/TextShow/GHC/Event.hs +1/−1
- src/TextShow/GHC/Fingerprint.hs +1/−1
- src/TextShow/GHC/Generics.hs +1/−1
- src/TextShow/GHC/RTS/Flags.hs +1/−1
- src/TextShow/GHC/Stack.hs +74/−0
- src/TextShow/GHC/StaticPtr.hs +2/−2
- src/TextShow/GHC/Stats.hs +1/−1
- src/TextShow/GHC/TypeLits.hs +1/−1
- src/TextShow/Generic.hs +1/−1
- src/TextShow/Instances.hs +2/−1
- src/TextShow/Numeric/Natural.hs +1/−1
- src/TextShow/System/Exit.hs +1/−1
- src/TextShow/System/IO.hs +1/−1
- src/TextShow/System/Posix/Types.hs +1/−1
- src/TextShow/TH.hs +1/−1
- src/TextShow/TH/Internal.hs +3/−3
- src/TextShow/TH/Names.hs +13/−1
- src/TextShow/Text/Read.hs +1/−1
- src/TextShow/Utils.hs +3/−2
- tests/Derived/DataFamilies.hs +1/−1
- tests/Derived/DatatypeContexts.hs +1/−1
- tests/Derived/ExistentialQuantification.hs +1/−1
- tests/Derived/Infix.hs +1/−1
- tests/Derived/MagicHash.hs +1/−1
- tests/Derived/PolyKinds.hs +1/−1
- tests/Derived/RankNTypes.hs +1/−1
- tests/Derived/Records.hs +1/−1
- tests/Derived/TypeSynonyms.hs +1/−1
- tests/Instances/Control/Applicative.hs +1/−1
- tests/Instances/Control/Concurrent.hs +1/−1
- tests/Instances/Control/Exception.hs +1/−1
- tests/Instances/Control/Monad/ST.hs +1/−1
- tests/Instances/Data/ByteString.hs +1/−1
- tests/Instances/Data/Char.hs +1/−1
- tests/Instances/Data/Data.hs +1/−1
- tests/Instances/Data/Dynamic.hs +1/−1
- tests/Instances/Data/Floating.hs +1/−1
- tests/Instances/Data/Functor/Compose.hs +1/−1
- tests/Instances/Data/Functor/Identity.hs +1/−1
- tests/Instances/Data/Functor/Product.hs +1/−1
- tests/Instances/Data/Functor/Sum.hs +1/−1
- tests/Instances/Data/List/NonEmpty.hs +1/−1
- tests/Instances/Data/Monoid.hs +1/−1
- tests/Instances/Data/OldTypeable.hs +1/−1
- tests/Instances/Data/Ord.hs +1/−1
- tests/Instances/Data/Proxy.hs +1/−1
- tests/Instances/Data/Semigroup.hs +1/−1
- tests/Instances/Data/Text.hs +1/−1
- tests/Instances/Data/Tuple.hs +1/−1
- tests/Instances/Data/Type/Coercion.hs +1/−1
- tests/Instances/Data/Type/Equality.hs +1/−1
- tests/Instances/Data/Typeable.hs +1/−1
- tests/Instances/Data/Version.hs +1/−1
- tests/Instances/Foreign/C/Types.hs +1/−1
- tests/Instances/Foreign/Ptr.hs +1/−1
- tests/Instances/FromStringTextShow.hs +1/−1
- tests/Instances/GHC/Conc/Windows.hs +1/−1
- tests/Instances/GHC/Event.hs +1/−1
- tests/Instances/GHC/Fingerprint.hs +1/−1
- tests/Instances/GHC/Generics.hs +1/−1
- tests/Instances/GHC/RTS/Flags.hs +1/−1
- tests/Instances/GHC/Stack.hs +36/−0
- tests/Instances/GHC/StaticPtr.hs +1/−1
- tests/Instances/GHC/Stats.hs +1/−1
- tests/Instances/GHC/TypeLits.hs +1/−1
- tests/Instances/Generic.hs +1/−1
- tests/Instances/Numeric/Natural.hs +1/−1
- tests/Instances/System/Exit.hs +1/−1
- tests/Instances/System/IO.hs +1/−1
- tests/Instances/System/Posix/Types.hs +1/−1
- tests/Instances/Text/Read.hs +1/−1
- tests/Instances/Utils.hs +1/−1
- tests/Spec/BuilderSpec.hs +1/−1
- tests/Spec/Control/ApplicativeSpec.hs +1/−1
- tests/Spec/Control/ConcurrentSpec.hs +1/−1
- tests/Spec/Control/ExceptionSpec.hs +1/−1
- tests/Spec/Data/ArraySpec.hs +1/−1
- tests/Spec/Data/BoolSpec.hs +1/−1
- tests/Spec/Data/ByteStringSpec.hs +1/−1
- tests/Spec/Data/CharSpec.hs +1/−1
- tests/Spec/Data/ComplexSpec.hs +1/−1
- tests/Spec/Data/DataSpec.hs +1/−1
- tests/Spec/Data/DynamicSpec.hs +1/−1
- tests/Spec/Data/EitherSpec.hs +1/−1
- tests/Spec/Data/FixedSpec.hs +1/−1
- tests/Spec/Data/FloatingSpec.hs +1/−1
- tests/Spec/Data/Functor/ComposeSpec.hs +1/−1
- tests/Spec/Data/Functor/IdentitySpec.hs +1/−1
- tests/Spec/Data/Functor/ProductSpec.hs +1/−1
- tests/Spec/Data/Functor/SumSpec.hs +1/−1
- tests/Spec/Data/IntegralSpec.hs +1/−1
- tests/Spec/Data/List/NonEmptySpec.hs +1/−1
- tests/Spec/Data/ListSpec.hs +1/−1
- tests/Spec/Data/MaybeSpec.hs +1/−1
- tests/Spec/Data/MonoidSpec.hs +1/−1
- tests/Spec/Data/OldTypeableSpec.hs +1/−1
- tests/Spec/Data/OrdSpec.hs +1/−1
- tests/Spec/Data/ProxySpec.hs +1/−1
- tests/Spec/Data/RatioSpec.hs +1/−1
- tests/Spec/Data/SemigroupSpec.hs +1/−1
- tests/Spec/Data/TextSpec.hs +1/−1
- tests/Spec/Data/TupleSpec.hs +1/−1
- tests/Spec/Data/Type/CoercionSpec.hs +1/−1
- tests/Spec/Data/Type/EqualitySpec.hs +1/−1
- tests/Spec/Data/TypeableSpec.hs +1/−1
- tests/Spec/Derived/DataFamiliesSpec.hs +1/−1
- tests/Spec/Derived/DatatypeContextsSpec.hs +1/−1
- tests/Spec/Derived/ExistentialQuantificationSpec.hs +1/−1
- tests/Spec/Derived/InfixSpec.hs +1/−1
- tests/Spec/Derived/MagicHashSpec.hs +1/−1
- tests/Spec/Derived/PolyKindsSpec.hs +1/−1
- tests/Spec/Derived/RankNTypesSpec.hs +1/−1
- tests/Spec/Derived/RecordsSpec.hs +1/−1
- tests/Spec/Derived/TypeSynonymsSpec.hs +1/−1
- tests/Spec/Foreign/C/TypesSpec.hs +1/−1
- tests/Spec/Foreign/PtrSpec.hs +1/−1
- tests/Spec/FromStringTextShowSpec.hs +1/−1
- tests/Spec/FunctionsSpec.hs +1/−1
- tests/Spec/GHC/Conc/WindowsSpec.hs +1/−1
- tests/Spec/GHC/EventSpec.hs +1/−1
- tests/Spec/GHC/FingerprintSpec.hs +1/−1
- tests/Spec/GHC/GenericsSpec.hs +1/−2
- tests/Spec/GHC/RTS/FlagsSpec.hs +1/−1
- tests/Spec/GHC/StackSpec.hs +43/−0
- tests/Spec/GHC/StaticPtrSpec.hs +1/−1
- tests/Spec/GHC/StatsSpec.hs +1/−1
- tests/Spec/GHC/TypeLitsSpec.hs +1/−1
- tests/Spec/GenericSpec.hs +1/−1
- tests/Spec/Numeric/NaturalSpec.hs +1/−1
- tests/Spec/System/ExitSpec.hs +1/−1
- tests/Spec/System/IOSpec.hs +1/−1
- tests/Spec/System/Posix/TypesSpec.hs +1/−1
- tests/Spec/Text/ReadSpec.hs +1/−1
- tests/Spec/Utils.hs +1/−1
- text-show.cabal +14/−4
CHANGELOG.md view
@@ -1,3 +1,7 @@+### 3.0.1+* Added the `TextShow.GHC.Stack` module, which provides `TextShow` instances for `CallStack` and `SrcLoc` on `base-4.8.1` and up.+* Fix Haddock rendering error+ # 3 * GHC 8.0 support * The functions `showt`, `showtl`, `showtPrec`, `showtlPrec`, `showtList`, and `showtlList` are now part of the `TextShow` class. This was done to allow overriding their definitions with more efficient versions specifically for strict or lazy `Text`. (Currently, no `TextShow` instance in the `text-show` package does this, but this may change in the future.)
LICENSE view
@@ -1,4 +1,4 @@-Copyright (c) 2014-2015, Ryan Scott+Copyright (c) 2014-2016, Ryan Scott All rights reserved.
src/TextShow.hs view
@@ -1,6 +1,6 @@ {-| Module: TextShow-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Classes.hs view
@@ -7,7 +7,7 @@ #endif {-| Module: TextShow.Classes-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Control/Applicative.hs view
@@ -3,7 +3,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Control.Applicative-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Control/Concurrent.hs view
@@ -6,7 +6,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Control.Concurrent-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Control/Exception.hs view
@@ -4,7 +4,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Control.Exception-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Control/Monad/ST.hs view
@@ -3,7 +3,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Control.Monad.ST-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Array.hs view
@@ -4,7 +4,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Array-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Bool.hs view
@@ -2,7 +2,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Bool-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/ByteString.hs view
@@ -8,7 +8,7 @@ {-| Module: TextShow.Data.ByteString-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Char.hs view
@@ -4,7 +4,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Char-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Complex.hs view
@@ -3,7 +3,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Ratio-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Data.hs view
@@ -3,7 +3,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Data-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Dynamic.hs view
@@ -3,7 +3,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Dynamic-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Either.hs view
@@ -3,7 +3,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Either-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Fixed.hs view
@@ -2,7 +2,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Fixed-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Floating.hs view
@@ -4,7 +4,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Floating-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Functor/Compose.hs view
@@ -4,7 +4,7 @@ {-| Module: TextShow.Data.Functor.Compose-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Functor/Identity.hs view
@@ -3,7 +3,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Functor.Identity-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Functor/Product.hs view
@@ -5,7 +5,7 @@ {-| Module: TextShow.Data.Functor.Product-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Functor/Sum.hs view
@@ -5,7 +5,7 @@ {-| Module: TextShow.Data.Functor.Sum-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Integral.hs view
@@ -4,7 +4,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Integral-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/List.hs view
@@ -2,7 +2,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.List-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/List/NonEmpty.hs view
@@ -3,7 +3,7 @@ {-| Module: TextShow.Data.List.NonEmpty-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional@@ -22,6 +22,10 @@ import TextShow.Data.List () import TextShow.TH.Internal (deriveTextShow, deriveTextShow1) +-- | Convert a 'NonEmpty' value to a 'Builder' with the given show functions+-- and precedence.+--+-- /Since: 3/ liftShowbNonEmptyPrec :: (Int -> a -> Builder) -> ([a] -> Builder) -> Int -> NonEmpty a -> Builder liftShowbNonEmptyPrec = liftShowbPrec
src/TextShow/Data/Maybe.hs view
@@ -3,7 +3,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Maybe-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Monoid.hs view
@@ -6,7 +6,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Monoid-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/OldTypeable.hs view
@@ -6,7 +6,7 @@ #endif {-| Module: TextShow.Data.OldTypeable-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Ord.hs view
@@ -2,7 +2,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Ord-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Proxy.hs view
@@ -10,7 +10,7 @@ {-| Module: TextShow.Data.Proxy-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Ratio.hs view
@@ -3,7 +3,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Ratio-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Semigroup.hs view
@@ -4,7 +4,7 @@ {-| Module: TextShow.Data.Semigroup-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Text.hs view
@@ -7,7 +7,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Text-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Tuple.hs view
@@ -3,7 +3,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Tuple-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Type/Coercion.hs view
@@ -8,7 +8,7 @@ #endif {-| Module: TextShow.Data.Type.Coercion-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Type/Equality.hs view
@@ -9,7 +9,7 @@ #endif {-| Module: TextShow.Data.Type.Equality-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Typeable.hs view
@@ -10,7 +10,7 @@ {-| Module: TextShow.Data.Typeable-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Typeable/Utils.hs view
@@ -1,6 +1,6 @@ {-| Module: TextShow.Data.Typeable.Utils-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Version.hs view
@@ -2,7 +2,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Version-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Data/Void.hs view
@@ -1,7 +1,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Data.Void-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Debug/Trace.hs view
@@ -3,7 +3,7 @@ {-# LANGUAGE OverloadedStrings #-} {-| Module: TextShow.Debug.Trace-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Debug/Trace/Generic.hs view
@@ -2,7 +2,7 @@ {-| Module: TextShow.Debug.Trace.Generic-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Debug/Trace/TH.hs view
@@ -1,7 +1,7 @@ {-# LANGUAGE TemplateHaskell #-} {-| Module: TextShow.Debug.Trace.TH-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Foreign/C/Types.hs view
@@ -6,7 +6,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Foreign.C.Types-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Foreign/Ptr.hs view
@@ -3,7 +3,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Foreign.Ptr-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/FromStringTextShow.hs view
@@ -32,7 +32,7 @@ {-| Module: TextShow.FromStringTextShow-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Functions.hs view
@@ -3,7 +3,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Functions-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/GHC/Conc/Windows.hs view
@@ -6,7 +6,7 @@ #endif {-| Module: TextShow.GHC.Conc.Windows-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/GHC/Event.hs view
@@ -7,7 +7,7 @@ #endif {-| Module: TextShow.GHC.Event-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/GHC/Fingerprint.hs view
@@ -5,7 +5,7 @@ #endif {-| Module: TextShow.GHC.Fingerprint-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/GHC/Generics.hs view
@@ -10,7 +10,7 @@ {-| Module: TextShow.GHC.Generics-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/GHC/RTS/Flags.hs view
@@ -6,7 +6,7 @@ #endif {-| Module: TextShow.GHC.RTS.Flags-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
+ src/TextShow/GHC/Stack.hs view
@@ -0,0 +1,74 @@+{-# LANGUAGE CPP #-}++#if MIN_VERSION_base(4,8,1)+{-# LANGUAGE TemplateHaskell #-}+{-# OPTIONS_GHC -fno-warn-orphans #-}+#endif+{-|+Module: TextShow.GHC.Stack+Copyright: (C) 2014-2016 Ryan Scott+License: BSD-style (see the file LICENSE)+Maintainer: Ryan Scott+Stability: Provisional+Portability: GHC++Monomorphic 'TextShow' functions for 'CallStack' and 'SrcLoc' values.+This module only exports functions if using @base-4.8.1.0@ or later.++/Since: 3.0.1/+-}+module TextShow.GHC.Stack (+#if !(MIN_VERSION_base(4,8,1))+ ) where+#else+ showbCallStackPrec+ , showbSrcLocPrec+ ) where++import Data.Text.Lazy.Builder (Builder)++import GHC.Stack (CallStack)+# if MIN_VERSION_base(4,9,0)+import GHC.Stack (SrcLoc, getCallStack)+# else+import GHC.SrcLoc (SrcLoc)+# endif++import TextShow.Classes (TextShow(..))+import TextShow.Data.Char ()+import TextShow.Data.Integral ()+import TextShow.Data.List ()+import TextShow.Data.Tuple ()+import TextShow.TH.Internal (deriveTextShow)++-- | Convert a 'CallStack' to a 'Builder' with the given precedence.+-- This function is only available with @base-4.8.1.0@ or later.+-- With @base-4.9@ or later, this function ignores the precedence argument.+--+-- /Since: 3.0.1/+showbCallStackPrec :: Int -> CallStack -> Builder+# if MIN_VERSION_base(4,9,0)+showbCallStackPrec _ = showb . getCallStack+# else+showbCallStackPrec = showbPrec+# endif+{-# INLINE showbCallStackPrec #-}++-- | Convert a 'SrcLoc' to a 'Builder' with the given precedence.+-- This function is only available with @base-4.8.1.0@ or later.+--+-- /Since: 3.0.1/+showbSrcLocPrec :: Int -> SrcLoc -> Builder+showbSrcLocPrec = showbPrec+{-# INLINE showbSrcLocPrec #-}++# if MIN_VERSION_base(4,9,0)+instance TextShow CallStack where+ showb = showbCallStackPrec 0+ {-# INLINE showb #-}+# else+$(deriveTextShow ''CallStack)+# endif++$(deriveTextShow ''SrcLoc)+#endif
src/TextShow/GHC/StaticPtr.hs view
@@ -6,7 +6,7 @@ #endif {-| Module: TextShow.GHC.StaticPtr-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional@@ -35,7 +35,7 @@ import TextShow.Data.Tuple () import TextShow.TH.Internal (deriveTextShow) --- | Conver a 'StaticPtrInfo' value to a 'Builder' with the given precedence.+-- | Convert a 'StaticPtrInfo' value to a 'Builder' with the given precedence. -- This function is only available with @base-4.8.0.0@ or later. -- -- /Since: 2/
src/TextShow/GHC/Stats.hs view
@@ -6,7 +6,7 @@ #endif {-| Module: TextShow.GHC.Stats-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/GHC/TypeLits.hs view
@@ -14,7 +14,7 @@ #endif {-| Module: TextShow.GHC.TypeLits-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Generic.hs view
@@ -25,7 +25,7 @@ {-| Module: TextShow.Generic-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Instances.hs view
@@ -1,6 +1,6 @@ {-| Module: TextShow.Instances-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional@@ -57,6 +57,7 @@ import TextShow.GHC.Fingerprint () import TextShow.GHC.Generics () import TextShow.GHC.RTS.Flags ()+import TextShow.GHC.Stack () import TextShow.GHC.StaticPtr () import TextShow.GHC.Stats () import TextShow.GHC.TypeLits ()
src/TextShow/Numeric/Natural.hs view
@@ -5,7 +5,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Numeric.Natural-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/System/Exit.hs view
@@ -2,7 +2,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.System.Exit-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/System/IO.hs view
@@ -4,7 +4,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.System.IO-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/System/Posix/Types.hs view
@@ -5,7 +5,7 @@ {-| Module: TextShow.System.Posix.Types-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/TH.hs view
@@ -1,6 +1,6 @@ {-| Module: TextShow.TH-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/TH/Internal.hs view
@@ -4,7 +4,7 @@ {-# LANGUAGE TemplateHaskell #-} {-| Module: TextShow.TH.Internal-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional@@ -933,8 +933,8 @@ droppedTyVarNames :: [Name] droppedTyVarNames = concatMap tyVarNamesOfType droppedTysExpSubst - -- If any of the dropped types were polykinded, ensure that there are of kind- -- * after substituting * for the dropped kind variables. If not, throw an error.+ -- If any of the dropped types were polykinded, ensure that they are of kind *+ -- after substituting * for the dropped kind variables. If not, throw an error. unless (all hasKindStar droppedTysExpSubst) $ derivingKindError tsClass tyConName
src/TextShow/TH/Names.hs view
@@ -3,7 +3,7 @@ {-| Module: TextShow.TH.Names-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional@@ -45,26 +45,33 @@ ------------------------------------------------------------------------------- #if MIN_VERSION_base(4,4,0)+-- | Creates a 'Name' for a value from the "GHC.Event.Internal" module. mkEventName_v :: String -> Name mkEventName_v = mkNameG_v "base" "GHC.Event.Internal" +-- | The 'Name' of 'evtClose'. evtCloseValName :: Name evtCloseValName = mkEventName_v "evtClose" +-- | The 'Name' of 'eventIs'. eventIsValName :: Name eventIsValName = mkEventName_v "eventIs" +-- | The 'Name' of 'FdKey'. fdKeyTypeName :: Name fdKeyTypeName = mkNameG_tc "base" "GHC.Event.Manager" "FdKey" +-- | The 'Name' of 'Unique'. uniqueTypeName :: Name uniqueTypeName = mkNameG_tc "base" "GHC.Event.Unique" "Unique" +-- | The 'Name' of 'asInt64'. asInt64ValName :: Name asInt64ValName = mkNameG_v "base" "GHC.Event.Unique" "asInt64" #endif #if MIN_VERSION_base(4,6,0)+-- | The 'Name' of 'Number'. numberTypeName :: Name # if MIN_VERSION_base(4,7,0) numberTypeName = ''Number@@ -74,6 +81,7 @@ #endif #if MIN_VERSION_base(4,8,0)+-- | The 'Name' of 'GiveGCStats'. giveGCStatsTypeName :: Name # if __GLASGOW_HASKELL__ >= 711 giveGCStatsTypeName = ''GiveGCStats@@ -81,6 +89,7 @@ giveGCStatsTypeName = mkFlagsName_tc "GiveGCStats" # endif +-- | The 'Name' of 'DoCostCentres'. doCostCentresTypeName :: Name # if __GLASGOW_HASKELL__ >= 711 doCostCentresTypeName = ''DoCostCentres@@ -88,6 +97,7 @@ doCostCentresTypeName = mkFlagsName_tc "DoCostCentres" # endif +-- | The 'Name' of 'DoHeapProfile'. doHeapProfileTypeName :: Name # if __GLASGOW_HASKELL__ >= 711 doHeapProfileTypeName = ''DoHeapProfile@@ -95,6 +105,7 @@ doHeapProfileTypeName = mkFlagsName_tc "DoHeapProfile" # endif +-- | The 'Name' of 'DoTrace'. doTraceTypeName :: Name # if __GLASGOW_HASKELL__ >= 711 doTraceTypeName = ''DoTrace@@ -102,6 +113,7 @@ doTraceTypeName = mkFlagsName_tc "DoTrace" # endif +-- | Creates a 'Name' for a type from the "GHC.RTS.Flags" module. # if __GLASGOW_HASKELL__ < 711 mkFlagsName_tc :: String -> Name mkFlagsName_tc = mkNameG_tc "base" "GHC.RTS.Flags"
src/TextShow/Text/Read.hs view
@@ -3,7 +3,7 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Module: TextShow.Text.Read-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
src/TextShow/Utils.hs view
@@ -3,7 +3,7 @@ {-| Module: TextShow.Utils-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional@@ -41,7 +41,8 @@ import Unsafe.Coerce (unsafeCoerce) #endif --- On GHC 7.8+, this is 'Data.Coerce.coerce'. Otherwise, it's 'unsafeCoerce'.+-- | On GHC 7.8 and later, this is 'C.coerce' from "Data.Coerce". Otherwise, it's+-- 'unsafeCoerce'. #if __GLASGOW_HASKELL__ >= 708 coerce :: C.Coercible a b => a -> b coerce = C.coerce
tests/Derived/DataFamilies.hs view
@@ -22,7 +22,7 @@ {-| Module: Derived.DataFamilies-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Derived/DatatypeContexts.hs view
@@ -6,7 +6,7 @@ {-| Module: Derived.DatatypeContexts-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Derived/ExistentialQuantification.hs view
@@ -7,7 +7,7 @@ {-| Module: Derived.ExistentialQuantification-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Derived/Infix.hs view
@@ -10,7 +10,7 @@ {-| Module: Derived.Infix-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Derived/MagicHash.hs view
@@ -9,7 +9,7 @@ {-| Module: Derived.MagicHash-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Derived/PolyKinds.hs view
@@ -21,7 +21,7 @@ {-| Module: Derived.PolyKinds-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Derived/RankNTypes.hs view
@@ -10,7 +10,7 @@ {-| Module: Derived.RankNTypes-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Derived/Records.hs view
@@ -8,7 +8,7 @@ {-| Module: Derived.Records-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Derived/TypeSynonyms.hs view
@@ -11,7 +11,7 @@ {-| Module: Derived.TypeSynonyms-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Control/Applicative.hs view
@@ -4,7 +4,7 @@ {-| Module: Instances.Control.Applicative-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Control/Concurrent.hs view
@@ -3,7 +3,7 @@ {-| Module: Instances.Control.Concurrent-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Control/Exception.hs view
@@ -5,7 +5,7 @@ {-| Module: Instances.Control.Exception-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Control/Monad/ST.hs view
@@ -2,7 +2,7 @@ {-| Module: Instances.Control.Monad.ST-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/ByteString.hs view
@@ -2,7 +2,7 @@ {-| Module: Instances.Data.ByteString-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/Char.hs view
@@ -2,7 +2,7 @@ {-| Module: Instances.Data.Char-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/Data.hs view
@@ -3,7 +3,7 @@ {-| Module: Instances.Data.Data-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/Dynamic.hs view
@@ -2,7 +2,7 @@ {-| Module: Instances.Data.Dynamic-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/Floating.hs view
@@ -4,7 +4,7 @@ {-| Module: Instances.Data.Floating-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/Functor/Compose.hs view
@@ -10,7 +10,7 @@ {-| Module: Instances.Data.Functor.Compose-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/Functor/Identity.hs view
@@ -4,7 +4,7 @@ {-| Module: Instances.Data.Functor.Identity-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/Functor/Product.hs view
@@ -8,7 +8,7 @@ {-| Module: Instances.Data.Functor.Product-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/Functor/Sum.hs view
@@ -8,7 +8,7 @@ {-| Module: Instances.Data.Functor.Sum-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/List/NonEmpty.hs view
@@ -3,7 +3,7 @@ {-| Module: Instances.Data.List.NonEmpty-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/Monoid.hs view
@@ -10,7 +10,7 @@ {-| Module: Instances.Data.Monoid-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/OldTypeable.hs view
@@ -7,7 +7,7 @@ {-| Module: Instances.Data.OldTypeable-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/Ord.hs view
@@ -4,7 +4,7 @@ {-| Module: Instances.Data.Ord-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/Proxy.hs view
@@ -8,7 +8,7 @@ {-| Module: Instances.Data.Proxy-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/Semigroup.hs view
@@ -4,7 +4,7 @@ {-| Module: Instances.Data.Semigroup-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/Text.hs view
@@ -4,7 +4,7 @@ {-| Module: Instances.Data.Text-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/Tuple.hs view
@@ -3,7 +3,7 @@ {-| Module: Instances.Data.Tuple-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/Type/Coercion.hs view
@@ -8,7 +8,7 @@ {-| Module: Instances.Data.Type.Coercion-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/Type/Equality.hs view
@@ -10,7 +10,7 @@ {-| Module: Instances.Data.Type.Equality-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/Typeable.hs view
@@ -4,7 +4,7 @@ {-| Module: Instances.Data.Typeable-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Data/Version.hs view
@@ -2,7 +2,7 @@ {-| Module: Instances.Data.Version-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Foreign/C/Types.hs view
@@ -9,7 +9,7 @@ {-| Module: Instances.Foreign.C.Types-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Foreign/Ptr.hs view
@@ -2,7 +2,7 @@ {-| Module: Instances.Foreign.Ptr-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/FromStringTextShow.hs view
@@ -5,7 +5,7 @@ {-| Module: Instances.FromStringTextShow-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/GHC/Conc/Windows.hs view
@@ -4,7 +4,7 @@ {-| Module: Instances.GHC.Conc.Windows-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/GHC/Event.hs view
@@ -4,7 +4,7 @@ {-| Module: Instances.GHC.Event-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/GHC/Fingerprint.hs view
@@ -3,7 +3,7 @@ {-| Module: Instances.GHC.Fingerprint-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/GHC/Generics.hs view
@@ -10,7 +10,7 @@ {-| Module: Instances.GHC.Generics-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/GHC/RTS/Flags.hs view
@@ -3,7 +3,7 @@ {-| Module: Instances.GHC.RTS.Flags-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
+ tests/Instances/GHC/Stack.hs view
@@ -0,0 +1,36 @@+{-# LANGUAGE CPP #-}+{-# OPTIONS_GHC -fno-warn-orphans #-}++{-|+Module: Instances.GHC.Stack+Copyright: (C) 2014-2016 Ryan Scott+License: BSD-style (see the file LICENSE)+Maintainer: Ryan Scott+Stability: Provisional+Portability: GHC++'Arbitrary' instances for 'CallStack' and 'SrcLoc'.+-}+module Instances.GHC.Stack () where++-- Ideally, we'd also define these instances for base-4.8.1 and up, but the+-- constructors for CallStack and SrcLoc aren't exposed prior to base-4.9, and+-- the API doesn't provide any way to construct values of those types, so we're+-- pretty much out of luck.+#if MIN_VERSION_base(4,9,0)+import GHC.Stack.Types (CallStack(..), SrcLoc(..))++import Instances.Utils ((<@>))++import Test.QuickCheck (Arbitrary(..), oneof)++instance Arbitrary CallStack where+ arbitrary = oneof [ pure EmptyCallStack+ , PushCallStack <$> arbitrary <@> EmptyCallStack+ , pure $ FreezeCallStack EmptyCallStack+ ]++instance Arbitrary SrcLoc where+ arbitrary = SrcLoc <$> arbitrary <*> arbitrary <*> arbitrary <*> arbitrary+ <*> arbitrary <*> arbitrary <*> arbitrary+#endif
tests/Instances/GHC/StaticPtr.hs view
@@ -3,7 +3,7 @@ {-| Module: Instances.GHC.StaticPtr-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/GHC/Stats.hs view
@@ -3,7 +3,7 @@ {-| Module: Instances.GHC.Stats-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/GHC/TypeLits.hs view
@@ -8,7 +8,7 @@ {-| Module: Instances.GHC.TypeLits-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Generic.hs view
@@ -2,7 +2,7 @@ {-| Module: Instances.Generic-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Numeric/Natural.hs view
@@ -3,7 +3,7 @@ {-| Module: Instances.Numeric.Natural-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/System/Exit.hs view
@@ -2,7 +2,7 @@ {-| Module: Instances.System.Exit-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/System/IO.hs view
@@ -4,7 +4,7 @@ {-| Module: Instances.System.IO-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/System/Posix/Types.hs view
@@ -6,7 +6,7 @@ {-| Module: Instances.System.Posix.Types-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Text/Read.hs view
@@ -3,7 +3,7 @@ {-| Module: Instances.Text.Read-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Instances/Utils.hs view
@@ -1,6 +1,6 @@ {-| Module: Properties.Instances-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/BuilderSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.BuilderSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Control/ApplicativeSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Control.ApplicativeSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Control/ConcurrentSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Control.ConcurrentSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Control/ExceptionSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Control.ExceptionSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/ArraySpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Data.ArraySpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/BoolSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Data.BoolSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/ByteStringSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Data.ByteStringSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/CharSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Data.CharSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/ComplexSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Data.ComplexSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/DataSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Data.DataSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/DynamicSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Data.DynamicSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/EitherSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Data.EitherSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/FixedSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Data.FixedSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/FloatingSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Data.FloatingSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/Functor/ComposeSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Data.Functor.ComposeSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/Functor/IdentitySpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Data.Functor.IdentitySpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/Functor/ProductSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Data.Functor.ProductSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/Functor/SumSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Data.Functor.SumSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/IntegralSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Data.IntegralSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/List/NonEmptySpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Data.List.NonEmptySpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/ListSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Data.ListSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/MaybeSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Data.MaybeSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/MonoidSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Data.MonoidSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/OldTypeableSpec.hs view
@@ -6,7 +6,7 @@ {-| Module: Spec.Data.OldTypeableSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/OrdSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Data.OrdSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/ProxySpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Data.ProxySpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/RatioSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Data.RatioSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/SemigroupSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Data.SemigroupSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/TextSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Data.TextSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/TupleSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Data.TupleSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/Type/CoercionSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Data.Type.CoercionSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/Type/EqualitySpec.hs view
@@ -3,7 +3,7 @@ {-| Module: Spec.Data.Type.EqualitySpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Data/TypeableSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Data.TypeableSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Derived/DataFamiliesSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Derived.DataFamiliesSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Derived/DatatypeContextsSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Derived.DatatypeContextsSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Derived/ExistentialQuantificationSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Derived.ExistentialQuantificationSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Derived/InfixSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Derived.InfixSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Derived/MagicHashSpec.hs view
@@ -3,7 +3,7 @@ {-| Module: Spec.Derived.MagicHashSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Derived/PolyKindsSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Derived.PolyKindsSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Derived/RankNTypesSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Derived.RankNTypesSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Derived/RecordsSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Derived.RecordsSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Derived/TypeSynonymsSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Derived.TypeSynonymsSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Foreign/C/TypesSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Foreign.C.TypesSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Foreign/PtrSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Foreign.PtrSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/FromStringTextShowSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.FromStringTextShowSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/FunctionsSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.FunctionsSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/GHC/Conc/WindowsSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.GHC.Conc.WindowsSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/GHC/EventSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.GHC.EventSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/GHC/FingerprintSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.GHC.FingerprintSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/GHC/GenericsSpec.hs view
@@ -7,7 +7,7 @@ {-| Module: Spec.GHC.GenericsSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional@@ -29,7 +29,6 @@ , Arity #endif )-import Generics.Deriving.Instances () import Instances.GHC.Generics ()
tests/Spec/GHC/RTS/FlagsSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.GHC.RTS.Flags-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
+ tests/Spec/GHC/StackSpec.hs view
@@ -0,0 +1,43 @@+{-# LANGUAGE CPP #-}++{-|+Module: Spec.GHC.StackSpec+Copyright: (C) 2014-2016 Ryan Scott+License: BSD-style (see the file LICENSE)+Maintainer: Ryan Scott+Stability: Provisional+Portability: GHC++@hspec@ tests for 'CallStack' and 'SrcLoc'.+-}+module Spec.GHC.StackSpec (main, spec) where++import Instances.GHC.Stack ()++import Prelude ()+import Prelude.Compat++import Test.Hspec (Spec, hspec, parallel)++#if MIN_VERSION_base(4,9,0)+import GHC.Stack (CallStack, SrcLoc)++import Spec.Utils (prop_matchesTextShow)++import Test.Hspec (describe)+import Test.Hspec.QuickCheck (prop)+#endif++main :: IO ()+main = hspec spec++spec :: Spec+spec = parallel $ do+#if MIN_VERSION_base(4,9,0)+ describe "CallStack" $+ prop "TextShow instance" (prop_matchesTextShow :: Int -> CallStack -> Bool)+ describe "SrcLoc" $+ prop "TextShow instance" (prop_matchesTextShow :: Int -> SrcLoc -> Bool)+#else+ pure ()+#endif
tests/Spec/GHC/StaticPtrSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.GHC.StaticPtrSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/GHC/StatsSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.GHC.StatsSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/GHC/TypeLitsSpec.hs view
@@ -6,7 +6,7 @@ {-| Module: Spec.GHC.TypeLitsSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/GenericSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.GenericSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Numeric/NaturalSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.Numeric.NaturalSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/System/ExitSpec.hs view
@@ -1,6 +1,6 @@ {-| Module: Spec.System.ExitSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/System/IOSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.System.IOSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/System/Posix/TypesSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.System.Posix.TypesSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Text/ReadSpec.hs view
@@ -2,7 +2,7 @@ {-| Module: Spec.Text.ReadSpec-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
tests/Spec/Utils.hs view
@@ -3,7 +3,7 @@ {-| Module: Spec.Utils-Copyright: (C) 2014-2015 Ryan Scott+Copyright: (C) 2014-2016 Ryan Scott License: BSD-style (see the file LICENSE) Maintainer: Ryan Scott Stability: Provisional
text-show.cabal view
@@ -1,5 +1,5 @@ name: text-show-version: 3+version: 3.0.1 synopsis: Efficient conversion of values into Text description: @text-show@ offers a replacement for the @Show@ typeclass intended for use with @Text@ instead of @String@s. This package was created@@ -41,7 +41,7 @@ author: Ryan Scott maintainer: Ryan Scott <ryan.gl.scott@gmail.com> stability: Provisional-copyright: (C) 2014-2015 Ryan Scott+copyright: (C) 2014-2016 Ryan Scott category: Text build-type: Simple tested-with: GHC == 7.0.4@@ -135,6 +135,9 @@ -- Only exports functions if base >= 4.8 TextShow.GHC.RTS.Flags TextShow.GHC.StaticPtr++ -- Only exports functions if base >= 4.8.1+ TextShow.GHC.Stack other-modules: TextShow.Classes TextShow.Data.Typeable.Utils TextShow.FromStringTextShow@@ -241,6 +244,9 @@ Instances.GHC.RTS.Flags Instances.GHC.StaticPtr + -- Only exports instances if base >= 4.9+ Instances.GHC.Stack+ Spec.BuilderSpec Spec.Control.ApplicativeSpec Spec.Control.ConcurrentSpec@@ -320,6 +326,9 @@ -- Only exports tests if base >= 4.8 Spec.GHC.RTS.FlagsSpec Spec.GHC.StaticPtrSpec++ -- Only exports tests if base >= 4.9+ Spec.GHC.StackSpec build-depends: array >= 0.3 && < 0.6 , base >= 4.3 && < 5 , base-compat >= 0.8.2 && < 1@@ -328,7 +337,7 @@ , bytestring >= 0.9 && < 0.11 , bytestring-builder , containers >= 0.1 && < 0.6- , generic-deriving >= 1.9 && < 2+ , generic-deriving >= 1.10.1 && < 2 , ghc-prim , hspec >= 2 && < 3 , integer-gmp@@ -339,13 +348,14 @@ , tagged >= 0.8.3 && < 1 , template-haskell >= 2.5 && < 2.12 , text >= 0.11.1 && < 1.3+ , th-lift >= 0.7.6 && < 1 , transformers >= 0.2.1 && < 0.6 , transformers-compat >= 0.5 && < 1 , void >= 0.5 && < 1 if impl(ghc >= 8.0) build-depends: ghc-boot if !flag(developer)- build-depends: text-show == 3+ build-depends: text-show == 3.0.1 hs-source-dirs: tests if flag(developer)