Commit a56298fb authored by Andrey Mokhov's avatar Andrey Mokhov

Make most extensions default, minor clean up

parent 1df54913
......@@ -101,16 +101,16 @@ executable hadrian
, Utilities
, Way
default-language: Haskell2010
default-extensions: RecordWildCards
, TupleSections
other-extensions: DeriveFunctor
default-extensions: DeriveFunctor
, DeriveGeneric
, FlexibleInstances
, GeneralizedNewtypeDeriving
, LambdaCase
, MultiParamTypeClasses
, OverloadedStrings
, RecordWildCards
, ScopedTypeVariables
, TupleSections
other-extensions: MultiParamTypeClasses
, OverloadedStrings
, TypeFamilies
build-depends: base >= 4.8 && < 5
, ansi-terminal == 0.6.*
......
{-# LANGUAGE DeriveGeneric, LambdaCase #-}
module Builder (
CcMode (..), GhcMode (..), GhcPkgMode (..), Builder (..), isOptional
) where
......
{-# LANGUAGE DeriveGeneric #-}
module Context (
Context (..), vanillaContext, stageContext, getStage, getPackage, getWay,
getStagedSettingList
......
{-# LANGUAGE FlexibleInstances #-}
module Expression (
-- * Expressions
Expr, Predicate, Args, Ways, Packages,
......
{-# LANGUAGE OverloadedStrings, LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
module GHC (
array, base, binary, bytestring, cabal, checkApiAnnotations, compareSizes,
......
{-# LANGUAGE GeneralizedNewtypeDeriving, TypeFamilies #-}
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
{-# LANGUAGE MultiParamTypeClasses, TypeFamilies #-}
module Hadrian.Expression (
-- * Expressions
Expr, Predicate, Args,
......
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Hadrian.Oracles.ArgsHash (
TrackArgument, trackAllArguments, trackArgsHash, argsHashOracle
) where
......
{-# LANGUAGE GeneralizedNewtypeDeriving, DeriveGeneric #-}
module Hadrian.Oracles.DirectoryContents (
directoryContents, directoryContentsOracle, Match (..), matchAll
) where
......
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Hadrian.Oracles.KeyValue (
lookupValue, lookupValueOrEmpty, lookupValueOrError, lookupValues,
lookupValuesOrEmpty, lookupValuesOrError, lookupDependencies, keyValueOracle
......
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Hadrian.Oracles.Path (
lookupInPath, fixAbsolutePathOnWindows, pathOracle
) where
......
{-# LANGUAGE DeriveGeneric #-}
module Hadrian.Target (Target, target, context, builder, inputs, outputs) where
import Development.Shake.Classes
......
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Oracles.ModuleFiles (
decodeModule, encodeModule, findGenerator, hsSources, hsObjects, moduleFilesOracle
) where
......
{-# LANGUAGE DeriveGeneric, GeneralizedNewtypeDeriving #-}
module Package (
Package (..), PackageName (..), PackageType (..),
-- * Queries
......
module Rules (
buildRules, oracleRules, packageTargets, topLevelTargets
) where
module Rules (buildRules, oracleRules, packageTargets, topLevelTargets) where
import qualified Hadrian.Oracles.ArgsHash
import qualified Hadrian.Oracles.DirectoryContents
......
{-# LANGUAGE FlexibleContexts #-}
module Rules.Install (installRules) where
import Hadrian.Oracles.DirectoryContents
......
module Rules.Library (
buildPackageLibrary, buildPackageGhciLibrary, buildDynamicLib
) where
) where
import Data.Char
import qualified System.Directory as IO
......
{-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Rules.Selftest (selftestRules) where
......
module Rules.Wrappers (
WrappedBinary(..), Wrapper, inplaceWrappers, installWrappers
) where
WrappedBinary(..), Wrapper, inplaceWrappers, installWrappers
) where
import Base
import Expression
......
module Settings.Install (
installPackageDbDirectory
) where
module Settings.Install (installPackageDbDirectory) where
import Base
import Expression (Stage(..))
import UserSettings (buildRootPath)
import Expression
import UserSettings
-- | In the final installation path specified by "DEST", there is another package.conf.d,
-- different from packageDbDirectory in Settings.Path.
......
{-# LANGUAGE DeriveGeneric #-}
module Stage (Stage (..), stageString) where
import Development.Shake.Classes
......
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