summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2016-02-07 22:40:24 +0100
committerBen Gamari <ben@smart-cactus.org>2016-02-07 23:14:28 +0100
commitc0a0ee362348d71d9bf58633858577f36e353cfb (patch)
tree9842482fe8d97f8eac7297d49103fbcc56a77c44 /libraries
parent0a2bd9ccf423dd635677926c1238aab5d3d4b1cb (diff)
downloadhaskell-c0a0ee362348d71d9bf58633858577f36e353cfb.tar.gz
Fix haddocks for TypeError
Diffstat (limited to 'libraries')
-rw-r--r--libraries/base/GHC/TypeLits.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/libraries/base/GHC/TypeLits.hs b/libraries/base/GHC/TypeLits.hs
index a51ba910e0..c32eebb4dc 100644
--- a/libraries/base/GHC/TypeLits.hs
+++ b/libraries/base/GHC/TypeLits.hs
@@ -221,24 +221,24 @@ infixl 6 :<>:
-- For instance, it can be used as a constraint, e.g. to provide a better error
-- message for a non-existant instance,
--
--- @@
+-- @
-- -- in a context
-- instance TypeError (Text "Cannot 'Show' functions." :$$:
-- Text "Perhaps there is a missing argument?")
-- => Show (a -> b) where
-- showsPrec = error "unreachable"
--- @@
+-- @
--
-- It can also be placed on the right-hand side of a type-level function
-- to provide an error for an invalid case,
--
--- @@
+-- @
-- type family ByteSize x where
-- ByteSize Word16 = 2
-- ByteSize Word8 = 1
-- ByteSize a = TypeError (Text "The type " :<>: ShowType a :<>:
-- Text " is not exportable.")
--- @@
+-- @
--
-- @since 4.9.0.0
type family TypeError (a :: ErrorMessage) :: b where