Commit 88c0870b authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺

Remove LANGUAGE pragrams implied by Haskell2010

Haskell2010 implies (at least) EmptyDataDecls, ForeignFunctionInterface,
PatternGuards, DoAndIfThenElse, and RelaxedPolyRec.

This is a follow-up to dd92e217Signed-off-by: Herbert Valerio Riedel's avatarHerbert Valerio Riedel <hvr@gnu.org>
parent dd92e217
......@@ -9,7 +9,7 @@
-- specialised to the UniqSM monad.
--
{-# LANGUAGE RankNTypes, ScopedTypeVariables, GADTs, EmptyDataDecls, PatternGuards, TypeFamilies, MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes, ScopedTypeVariables, GADTs, TypeFamilies, MultiParamTypeClasses #-}
{-# OPTIONS_GHC -fprof-auto-top #-}
{-# LANGUAGE Trustworthy #-}
......
......@@ -2,7 +2,7 @@
GHC = ghc
compare: *.hs
"$(GHC)" -O --make -Wall -Werror $@
"$(GHC)" -O -XHaskell2010 --make -Wall -Werror $@
.PHONY: clean
clean:
......
{-# LANGUAGE PatternGuards #-}
module Main (main) where
import Control.Monad.State
......
{-# OPTIONS -fno-warn-incomplete-patterns -optc-DNON_POSIX_SOURCE #-}
{-# LANGUAGE ForeignFunctionInterface #-}
-----------------------------------------------------------------------------
--
......
{-# LANGUAGE CPP, MagicHash, ForeignFunctionInterface,
NoImplicitPrelude, BangPatterns, UnboxedTuples,
{-# LANGUAGE CPP, MagicHash, NoImplicitPrelude, BangPatterns, UnboxedTuples,
UnliftedFFITypes #-}
-- Commentary of Integer library is located on the wiki:
......
......@@ -13,4 +13,4 @@ check: checkUniques
./checkUniques mkPreludeMiscIdUnique $(PREL_NAMES) $(DS_META)
checkUniques: checkUniques.hs
$(GHC) --make $@
$(GHC) -O -XHaskell2010 --make $@
{-# LANGUAGE PatternGuards #-}
-- Some things could be improved, e.g.:
-- * Check that each file given contains at least one instance of the
-- function
......
{-# LANGUAGE PatternGuards #-}
module Main (main) where
import Control.Monad
......
{-# LANGUAGE PatternGuards, CPP, ForeignFunctionInterface #-}
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
--
-- (c) The University of Glasgow 2004-2009.
......
{-# LANGUAGE PatternGuards, ScopedTypeVariables #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Main where
import Prelude hiding ( mod, id, mapM )
......
{-# LANGUAGE CPP, ForeignFunctionInterface #-}
{-# LANGUAGE CPP #-}
#include "ghcconfig.h"
-----------------------------------------------------------------------------
--
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment