summaryrefslogtreecommitdiff
path: root/libraries/base/Data/Functor/Identity.hs
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2014-11-20 09:53:46 +0100
committerHerbert Valerio Riedel <hvr@gnu.org>2014-11-20 10:44:02 +0100
commit8cbd25a49051171da7c73db57ebd87bb0296c2f7 (patch)
tree53268a5ab10b4bfc1511d75b5229f2d46fb96266 /libraries/base/Data/Functor/Identity.hs
parentc6e12e69fa348328d58540a1ea8abed35d0dda32 (diff)
downloadhaskell-8cbd25a49051171da7c73db57ebd87bb0296c2f7.tar.gz
Make Data.Functor.Identity trustworthy again
Alas `{-# LANGUAGE Safe #-}` can't be used since `Data.Coerce` isn't "safe". However, we use `coerce` just as an optimisation (see also 4ba884bdd3a9521ea92fcda8f601a7d0f3537bc1 which broke the safe-inferred status of `Data.Functor.Identity`), so this module at least deserves `{-# LANGUAGE Trustworthy #-}`. NOTE: `Data.Functor.Identity` was added to `base` in the context of #9664 Reviewed By: luite Differential Revision: https://phabricator.haskell.org/D507
Diffstat (limited to 'libraries/base/Data/Functor/Identity.hs')
-rw-r--r--libraries/base/Data/Functor/Identity.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/libraries/base/Data/Functor/Identity.hs b/libraries/base/Data/Functor/Identity.hs
index de7f19a210..909de8579d 100644
--- a/libraries/base/Data/Functor/Identity.hs
+++ b/libraries/base/Data/Functor/Identity.hs
@@ -1,5 +1,6 @@
{-# LANGUAGE AutoDeriveTypeable #-}
{-# LANGUAGE DeriveTraversable #-}
+{-# LANGUAGE Trustworthy #-}
-----------------------------------------------------------------------------
-- |