File: GhcPrelude.hs

package info (click to toggle)
ghc 8.4.4%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 67,548 kB
  • sloc: haskell: 435,629; ansic: 62,017; sh: 6,706; python: 1,916; makefile: 1,014; perl: 465; asm: 315; xml: 196; yacc: 102; ruby: 84; lisp: 7
file content (20 lines) | stat: -rw-r--r-- 582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{-# LANGUAGE CPP #-}

-- | Custom GHC "Prelude"
--
-- This module serves as a replacement for the "Prelude" module
-- and abstracts over differences between the bootstrapping
-- GHC version, and may also provide a common default vocabulary.
--
module GhcPrelude (module X) where

-- We export the 'Semigroup' class but w/o the (<>) operator to avoid
-- clashing with the (Outputable.<>) operator which is heavily used
-- through GHC's code-base.

#if MIN_VERSION_base(4,11,0)
import Prelude as X hiding ((<>))
#else
import Prelude as X
import Data.Semigroup as X (Semigroup)
#endif