diff --git a/react.cabal b/react.cabal index 4028541..6870884 100644 --- a/react.cabal +++ b/react.cabal @@ -44,3 +44,8 @@ library build-depends: jsaddle-warp default-language: Haskell2010 + default-extensions: + FlexibleInstances + GeneralizedNewtypeDeriving + LambdaCase + OverloadedStrings diff --git a/src/React/Component.hs b/src/React/Component.hs index aea92e1..b21821b 100644 --- a/src/React/Component.hs +++ b/src/React/Component.hs @@ -1,4 +1,3 @@ -{-# LANGUAGE GeneralizedNewtypeDeriving #-} module React.Component where import Control.Monad.Except diff --git a/src/React/Element.hs b/src/React/Element.hs index c8f09af..fdce34f 100644 --- a/src/React/Element.hs +++ b/src/React/Element.hs @@ -1,4 +1,3 @@ -{-# LANGUAGE OverloadedStrings #-} module React.Element where import Control.Monad.Except diff --git a/src/React/Export.hs b/src/React/Export.hs index 15723eb..50c1a91 100644 --- a/src/React/Export.hs +++ b/src/React/Export.hs @@ -1,5 +1,4 @@ {-# LANGUAGE CPP #-} -{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TemplateHaskell #-} module React.Export where diff --git a/src/React/Hook.hs b/src/React/Hook.hs index c59a1de..8a5794d 100644 --- a/src/React/Hook.hs +++ b/src/React/Hook.hs @@ -1,5 +1,3 @@ -{-# LANGUAGE OverloadedStrings #-} -{-# LANGUAGE GeneralizedNewtypeDeriving #-} module React.Hook where import Prelude hiding ((!!)) diff --git a/src/React/JSaddle.hs b/src/React/JSaddle.hs index 157107e..8645443 100644 --- a/src/React/JSaddle.hs +++ b/src/React/JSaddle.hs @@ -1,7 +1,4 @@ {-# LANGUAGE CPP #-} -{-# LANGUAGE FlexibleInstances #-} -{-# LANGUAGE GeneralizedNewtypeDeriving #-} -{-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -Wno-orphans #-} -- | Everything in this module belongs in JSaddle, GHCJS-DOM, or similar module React.JSaddle where diff --git a/src/React/Types.hs b/src/React/Types.hs index d66e8fe..b9f68ab 100644 --- a/src/React/Types.hs +++ b/src/React/Types.hs @@ -1,5 +1,4 @@ {-# LANGUAGE CPP #-} -{-# LANGUAGE GeneralizedNewtypeDeriving #-} module React.Types where import Control.Monad.Reader