summaryrefslogtreecommitdiff
path: root/libraries/base/GHC/Base.hs-boot
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2017-09-05 07:29:36 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2017-09-07 23:43:53 +0200
commit8ae263ceb3566a7c82336400b09cb8f381217405 (patch)
tree535775c4f739cd23bd443557f2d8f8b939cf711e /libraries/base/GHC/Base.hs-boot
parent055d73c6576bed2affaf96ef6a6b89aeb2cd2e9f (diff)
downloadhaskell-8ae263ceb3566a7c82336400b09cb8f381217405.tar.gz
Make Semigroup a superclass of Monoid (re #14191)
Unfortunately, this requires introducing a couple of .hs-boot files to break up import cycles (mostly to provide class & typenames in order to be able to write type signatures). This does not yet re-export `(<>)` from Prelude (while the class-name `Semigroup` is reexported); that will happen in a future commit. Test Plan: local ./validate passed Reviewers: ekmett, austin, bgamari, erikd, RyanGlScott Reviewed By: ekmett, RyanGlScott GHC Trac Issues: #14191 Differential Revision: https://phabricator.haskell.org/D3927
Diffstat (limited to 'libraries/base/GHC/Base.hs-boot')
-rw-r--r--libraries/base/GHC/Base.hs-boot10
1 files changed, 10 insertions, 0 deletions
diff --git a/libraries/base/GHC/Base.hs-boot b/libraries/base/GHC/Base.hs-boot
new file mode 100644
index 0000000000..ca85b49147
--- /dev/null
+++ b/libraries/base/GHC/Base.hs-boot
@@ -0,0 +1,10 @@
+{-# LANGUAGE NoImplicitPrelude #-}
+
+module GHC.Base where
+
+import GHC.Types ()
+
+class Semigroup a
+class Monoid a
+
+data Maybe a = Nothing | Just a