Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/Pretty.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,13 @@ module Pretty (
render, fullRender
) where


import Prelude hiding ((<>))

-- Don't import Util( assertPanic ) because it makes a loop in the module structure



infixl 6 <>
infixl 6 <+>
infixl 5 $$, $+$
Expand Down
2 changes: 2 additions & 0 deletions src/RuleUtils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import Pretty
import DataP (Statement(..),Data(..),Type(..),Name,Var,Class,
Body(..),Constructor)

import Prelude hiding ((<>))

-- Rule Declarations

type Tag = String
Expand Down
1 change: 1 addition & 0 deletions src/Rules/BitsBinary.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module Rules.BitsBinary(rules) where

import Data.List (intersperse)
import RuleUtils -- useful to have a look at this too
import Prelude hiding ((<>))

rules = [
("BitsBinary", userRuleBinary, "Binary", "bit based binary encoding of terms", Nothing)
Expand Down
1 change: 1 addition & 0 deletions src/Rules/FunctorM.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module Rules.FunctorM (rules) where

import Data.List
import RuleUtils
import Prelude hiding ((<>))

rules = [
("FunctorM", userRuleFunctorM, "Generics", "derive reasonable fmapM implementation", Nothing),
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/Generic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Rules.Generic(rules) where
-- import StandardRules
import RuleUtils
import Data.List(intersperse)

import Prelude hiding ((<>))

rules :: [RuleDef]
rules = [
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/Monoid.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module Rules.Monoid (rules) where

import RuleUtils

import Prelude hiding ((<>))
rules = [
("Monoid", userRuleMonoid, "Generics", "derive reasonable Data.Monoid implementation", Nothing)
]
Expand Down
2 changes: 1 addition & 1 deletion src/Rules/Standard.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Rules.Standard(rules) where
import RuleUtils
import Data.List
import GenUtil

import Prelude hiding ((<>))

--- Add Rules Below Here ----------------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions src/Rules/Xml.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module Rules.Xml(rules) where

import Data.List (nub,sortBy)
import RuleUtils -- useful to have a look at this too
import Prelude hiding ((<>))

rules :: [RuleDef]
rules =
Expand Down