diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2017-09-26 15:32:32 +0200 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2017-09-26 15:37:25 +0200 |
commit | 9a60de3a5c25f8c51cd2dfd179629ce4a1da54b8 (patch) | |
tree | 616cb0d45b3e07a0e3e1e3f1f0d46c807bcdf525 /CabalHelper/Compiletime | |
parent | 6ab7e21362b0708ec3867456581684e78c9ac8ea (diff) |
Cleanup module headers
Diffstat (limited to 'CabalHelper/Compiletime')
-rw-r--r-- | CabalHelper/Compiletime/Compile.hs | 10 | ||||
-rw-r--r-- | CabalHelper/Compiletime/Data.hs | 10 | ||||
-rw-r--r-- | CabalHelper/Compiletime/GuessGhc.hs | 22 | ||||
-rw-r--r-- | CabalHelper/Compiletime/Log.hs | 21 | ||||
-rw-r--r-- | CabalHelper/Compiletime/Types.hs | 8 |
5 files changed, 58 insertions, 13 deletions
diff --git a/CabalHelper/Compiletime/Compile.hs b/CabalHelper/Compiletime/Compile.hs index 6ea2676..c27ab63 100644 --- a/CabalHelper/Compiletime/Compile.hs +++ b/CabalHelper/Compiletime/Compile.hs @@ -1,5 +1,4 @@ --- cabal-helper: Simple interface to Cabal's configuration state --- Copyright (C) 2015 Daniel Gröber <dxld ÄT darkboxed DOT org> +-- Copyright (C) 2015,2017 Daniel Gröber <dxld ÄT darkboxed DOT org> -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by @@ -14,6 +13,13 @@ -- You should have received a copy of the GNU Affero General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. {-# LANGUAGE RecordWildCards, FlexibleContexts #-} + +{-| +Module : CabalHelper.Compiletime.Compile +Description : Runtime compilation machinery +License : AGPL-3 +-} + module CabalHelper.Compiletime.Compile where import Control.Applicative diff --git a/CabalHelper/Compiletime/Data.hs b/CabalHelper/Compiletime/Data.hs index 346c2a5..2842cfc 100644 --- a/CabalHelper/Compiletime/Data.hs +++ b/CabalHelper/Compiletime/Data.hs @@ -1,5 +1,4 @@ --- cabal-helper: Simple interface to Cabal's configuration state --- Copyright (C) 2015 Daniel Gröber <dxld ÄT darkboxed DOT org> +-- Copyright (C) 2015,2017 Daniel Gröber <dxld ÄT darkboxed DOT org> -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU Affero General Public License as published by @@ -16,6 +15,13 @@ {-# LANGUAGE TemplateHaskell, ScopedTypeVariables #-} {-# OPTIONS_GHC -fforce-recomp #-} + +{-| +Module : CabalHelper.Compiletime.Data +Description : Embeds source code for runtime component using TH +License : AGPL-3 +-} + module CabalHelper.Compiletime.Data where import Control.Monad diff --git a/CabalHelper/Compiletime/GuessGhc.hs b/CabalHelper/Compiletime/GuessGhc.hs index e1cf577..f4b33d5 100644 --- a/CabalHelper/Compiletime/GuessGhc.hs +++ b/CabalHelper/Compiletime/GuessGhc.hs @@ -1,11 +1,3 @@ -module CabalHelper.Compiletime.GuessGhc (guessToolFromGhcPath) where - -import Data.Maybe -import Data.Char -import Distribution.Simple.BuildPaths -import System.Directory -import System.FilePath - -- Copyright (c) 2003-2014, Isaac Jones, Simon Marlow, Martin Sjögren, -- Bjorn Bringert, Krasimir Angelov, -- Malcolm Wallace, Ross Patterson, Ian Lynagh, @@ -41,6 +33,20 @@ import System.FilePath -- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +{-| +Module : CabalHelper.Compiletime.GuessGhc +Description : Logic for finding @ghc-pkg@ based on path to @ghc@ +License : BSD3 +-} + +module CabalHelper.Compiletime.GuessGhc (guessToolFromGhcPath) where + +import Data.Maybe +import Data.Char +import Distribution.Simple.BuildPaths +import System.Directory +import System.FilePath + guessToolFromGhcPath :: FilePath -- ^ Tool name -> FilePath -- ^ GHC exe path -> IO (Maybe FilePath) diff --git a/CabalHelper/Compiletime/Log.hs b/CabalHelper/Compiletime/Log.hs index eb7ecaa..a75f8b7 100644 --- a/CabalHelper/Compiletime/Log.hs +++ b/CabalHelper/Compiletime/Log.hs @@ -1,5 +1,26 @@ +-- Copyright (C) 2017 Daniel Gröber <dxld ÄT darkboxed DOT org> +-- +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU Affero General Public License as published by +-- the Free Software Foundation, either version 3 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU Affero General Public License for more details. +-- +-- You should have received a copy of the GNU Affero General Public License +-- along with this program. If not, see <http://www.gnu.org/licenses/>. + {-# LANGUAGE ScopedTypeVariables #-} +{-| +Module : CabalHelper.Compiletime.Log +Description : Basic logging facilities +License : AGPL-3 +-} + module CabalHelper.Compiletime.Log where import Control.Monad diff --git a/CabalHelper/Compiletime/Types.hs b/CabalHelper/Compiletime/Types.hs index da6eb4d..bfe9b7c 100644 --- a/CabalHelper/Compiletime/Types.hs +++ b/CabalHelper/Compiletime/Types.hs @@ -1,4 +1,3 @@ --- cabal-helper: Simple interface to Cabal's configuration state -- Copyright (C) 2015 Daniel Gröber <dxld ÄT darkboxed DOT org> -- -- This program is free software: you can redistribute it and/or modify @@ -15,6 +14,13 @@ -- along with this program. If not, see <http://www.gnu.org/licenses/>. {-# LANGUAGE DeriveGeneric, DeriveDataTypeable, DefaultSignatures #-} + +{-| +Module : CabalHelper.Compiletime.Types +Description : Types used throughout +License : AGPL-3 +-} + module CabalHelper.Compiletime.Types where import Data.Version |