about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <vincent@spotify.com>2014-05-18T19·56+0200
committerVincent Ambo <vincent@spotify.com>2014-05-18T19·56+0200
commit5f6841afa263a7d5938e31eef8df1f8066cd7dd5 (patch)
treef2099278465a3f5402367afb38cbc2e441b0125c
parent19cc93685b2ae499c913a8ff2fc27877d5e213b6 (diff)
Move all used GHC extensions to Cabal
-rw-r--r--TazBlog.cabal12
-rw-r--r--src/Blog.hs7
-rw-r--r--src/BlogDB.hs8
-rw-r--r--src/Locales.hs4
-rw-r--r--src/Main.hs10
-rw-r--r--src/RSS.hs2
6 files changed, 11 insertions, 32 deletions
diff --git a/TazBlog.cabal b/TazBlog.cabal
index bd903c67635a..2ab09982303a 100644
--- a/TazBlog.cabal
+++ b/TazBlog.cabal
@@ -14,7 +14,6 @@ Executable tazblog
   hs-source-dirs: src
   main-is: Main.hs
   ghc-options: -O2
-
   Build-depends:
     base,
     bytestring,
@@ -38,3 +37,14 @@ Executable tazblog
     hamlet,
     shakespeare,
     markdown
+  extensions:
+    DeriveDataTypeable
+    FlexibleContexts
+    GeneralizedNewtypeDeriving
+    MultiParamTypeClasses
+    OverloadedStrings
+    RecordWildCards
+    ScopedTypeVariables
+    TemplateHaskell
+    TypeFamilies
+    QuasiQuotes
diff --git a/src/Blog.hs b/src/Blog.hs
index 67adf0cd3cf4..00ba6c94d00d 100644
--- a/src/Blog.hs
+++ b/src/Blog.hs
@@ -1,10 +1,3 @@
-{-# LANGUAGE DeriveDataTypeable  #-}
-{-# LANGUAGE OverloadedStrings   #-}
-{-# LANGUAGE QuasiQuotes         #-}
-{-# LANGUAGE RecordWildCards     #-}
-{-# LANGUAGE ScopedTypeVariables #-}
-{-# LANGUAGE TemplateHaskell     #-}
-
 module Blog where
 
 import           BlogDB
diff --git a/src/BlogDB.hs b/src/BlogDB.hs
index 21d887297ff5..e2787794c344 100644
--- a/src/BlogDB.hs
+++ b/src/BlogDB.hs
@@ -1,11 +1,3 @@
-{-# LANGUAGE DeriveDataTypeable         #-}
-{-# LANGUAGE GeneralizedNewtypeDeriving #-}
-{-# LANGUAGE OverloadedStrings          #-}
-{-# LANGUAGE RecordWildCards            #-}
-{-# LANGUAGE ScopedTypeVariables        #-}
-{-# LANGUAGE TemplateHaskell            #-}
-{-# LANGUAGE TypeFamilies               #-}
-
 module BlogDB where
 
 import           Control.Monad.Reader   (ask)
diff --git a/src/Locales.hs b/src/Locales.hs
index 7fd874c1d07f..206545d447d8 100644
--- a/src/Locales.hs
+++ b/src/Locales.hs
@@ -1,7 +1,3 @@
-{-# LANGUAGE DeriveDataTypeable  #-}
-{-# LANGUAGE OverloadedStrings   #-}
-{-# LANGUAGE ScopedTypeVariables #-}
-
 module Locales where
 
 import           Data.Data   (Data, Typeable)
diff --git a/src/Main.hs b/src/Main.hs
index 67440e6f0eb9..2579d576964a 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -1,13 +1,3 @@
-{-# LANGUAGE DeriveDataTypeable         #-}
-{-# LANGUAGE FlexibleContexts           #-}
-{-# LANGUAGE GeneralizedNewtypeDeriving #-}
-{-# LANGUAGE MultiParamTypeClasses      #-}
-{-# LANGUAGE OverloadedStrings          #-}
-{-# LANGUAGE RecordWildCards            #-}
-{-# LANGUAGE ScopedTypeVariables        #-}
-{-# LANGUAGE TemplateHaskell            #-}
-{-# LANGUAGE TypeFamilies               #-}
-
 module Main where
 
 import           Control.Applicative          (optional, pure, (<$>), (<*>))
diff --git a/src/RSS.hs b/src/RSS.hs
index 2309b1297c53..6a244129fec6 100644
--- a/src/RSS.hs
+++ b/src/RSS.hs
@@ -1,5 +1,3 @@
-{-# LANGUAGE RecordWildCards #-}
-
 module RSS (renderFeed) where
 
 import qualified Data.Text     as T