Browse files

LANGUAGE DoRec ↦ RecursiveDo; one pragma per line

  • Loading branch information...
1 parent fd3a878 commit 65d56099392c24d6e92cfef46c7c94c79b237f64 @liyang liyang committed Mar 13, 2013
Showing with 29 additions and 8 deletions.
  1. +12 −2 FRP/Euphoria/Collection.hs
  2. +13 −4 FRP/Euphoria/Event.hs
  3. +4 −2 FRP/Euphoria/Update.hs
View
14 FRP/Euphoria/Collection.hs
@@ -1,6 +1,16 @@
+{-# LANGUAGE CPP #-}
+{-# LANGUAGE DeriveFoldable #-}
+{-# LANGUAGE DeriveFunctor #-}
+{-# LANGUAGE DeriveTraversable #-}
+{-# LANGUAGE ScopedTypeVariables #-}
+{-# LANGUAGE TupleSections #-}
{-# OPTIONS_GHC -Wall #-}
-{-# LANGUAGE DoRec, ScopedTypeVariables, TupleSections
- ,DeriveFunctor, DeriveTraversable, DeriveFoldable #-}
+
+#if __GLASGOW_HASKELL__ <= 706
+{-# LANGUAGE DoRec #-}
+#else
+{-# LANGUAGE RecursiveDo #-}
+#endif
-- | Collection signals with incremental updates.
module FRP.Euphoria.Collection
View
17 FRP/Euphoria/Event.hs
@@ -1,9 +1,18 @@
-{-# LANGUAGE CPP, DeriveFunctor, MultiParamTypeClasses, DeriveDataTypeable, BangPatterns, DoRec #-}
+{-# LANGUAGE BangPatterns #-}
+{-# LANGUAGE CPP #-}
+{-# LANGUAGE DeriveDataTypeable #-}
+{-# LANGUAGE DeriveFunctor #-}
+{-# LANGUAGE FlexibleInstances #-}
+{-# LANGUAGE FunctionalDependencies #-}
+{-# LANGUAGE MultiParamTypeClasses #-}
+{-# OPTIONS_GHC -Wall #-}
--- For EasyApply
-{-# LANGUAGE FlexibleInstances, FunctionalDependencies #-}
+#if __GLASGOW_HASKELL__ <= 706
+{-# LANGUAGE DoRec #-}
+#else
+{-# LANGUAGE RecursiveDo #-}
+#endif
-{-# OPTIONS_GHC -Wall #-}
-- | Event/discrete layer constructed on top of Elerea.
-- The API is largely inspired by reactive-banana.
module FRP.Euphoria.Event
View
6 FRP/Euphoria/Update.hs
@@ -1,6 +1,8 @@
-{-# LANGUAGE ExistentialQuantification, TupleSections, BangPatterns #-}
-
+{-# LANGUAGE BangPatterns #-}
+{-# LANGUAGE ExistentialQuantification #-}
+{-# LANGUAGE TupleSections #-}
{-# OPTIONS_GHC -Wall #-}
+
-- | Signals for incremental updates.
module FRP.Euphoria.Update
( Update(..)

0 comments on commit 65d5609

Please sign in to comment.