Skip to content

Commit 02272fa

Browse files
committed
formatting
1 parent f10dfca commit 02272fa

8 files changed

Lines changed: 30 additions & 29 deletions

File tree

app/Evaluare.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import Reflex.Vty
2020
import System.Environment (getArgs)
2121
import qualified System.IO.Strict as Strict
2222
import qualified Telomare as Tel
23-
import Telomare (CompiledExpr, CompiledExprF (..), BasicExprF (..), StuckF (..))
23+
import Telomare (BasicExprF (..), CompiledExpr, CompiledExprF (..), StuckF (..))
2424
import qualified Telomare.Eval as TE
2525
import Telomare.Parser (AnnotatedUPT, parseModule)
2626
import Text.Read (readMaybe)

src/PrettyPrint.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ module PrettyPrint where
66

77
import Control.Monad.State (State)
88
import Data.Map (Map)
9-
import Telomare (AbortableF (..), CompiledExpr, CompiledExprF (..),
10-
DataType (..), FunctionIndex, LamType (..), LocTag,
11-
ParserTermF (..), BasicExprF (..), PartialType (..),
12-
Pattern (..), StuckExpr, StuckExprF (..), StuckF (..), Term1,
13-
Term3 (..), Term3F (..), UnprocessedParsedTerm (..),
9+
import Telomare (AbortableF (..), BasicExprF (..), CompiledExpr,
10+
CompiledExprF (..), DataType (..), FunctionIndex, LamType (..),
11+
LocTag, ParserTermF (..), PartialType (..), Pattern (..),
12+
StuckExpr, StuckExprF (..), StuckF (..), Term1, Term3 (..),
13+
Term3F (..), UnprocessedParsedTerm (..),
1414
UnprocessedParsedTermF (..), b2i, convertAbortMessage, forget,
1515
indentWithChildren', indentWithOneChild',
1616
indentWithTwoChildren', locatedNameText, pattern BasicEE)

src/Telomare.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,11 @@ instance Show1 StuckF where
199199
instance Eq1 StuckF where
200200
liftEq test a b = case (a,b) of
201201
(DeferSF ix _, DeferSF iy _) | ix == iy -> True -- test a b
202-
(EnvSF, EnvSF) -> True
203-
(SetEnvSF x, SetEnvSF y) -> test x y
204-
(GateSF a b, GateSF c d) -> test a c && test b d
205-
(LeftSF x, LeftSF y) -> test x y
206-
(RightSF x, RightSF y) -> test x y
202+
(EnvSF, EnvSF) -> True
203+
(SetEnvSF x, SetEnvSF y) -> test x y
204+
(GateSF a b, GateSF c d) -> test a c && test b d
205+
(LeftSF x, LeftSF y) -> test x y
206+
(RightSF x, RightSF y) -> test x y
207207
_ -> False
208208

209209
newtype FunctionIndex = FunctionIndex { unFunctionIndex :: Int } deriving (Eq, Ord, Enum, Show, Generic)

src/Telomare/Eval.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ import qualified Control.Comonad.Trans.Cofree as CofreeT
2828
import Control.Lens (Identity (runIdentity))
2929
import Data.Functor.Foldable (Base, cata, embed, para)
3030
import PrettyPrint
31-
import Telomare (AbortableF (AbortF), AbstractRunTime, BasicExpr, CompiledExpr,
32-
CompiledExprF, EvalError (..), LocTag (..), LocatedName (..),
33-
BasicExprF (..), PartialType (..), Pattern, ResolverError (..),
34-
RunTimeError (..), StuckExpr, StuckF (..), TelomareLike (..),
35-
Term2, Term3, Term3Builder, Term3F (..),
31+
import Telomare (AbortableF (AbortF), AbstractRunTime, BasicExpr,
32+
BasicExprF (..), CompiledExpr, CompiledExprF, EvalError (..),
33+
LocTag (..), LocatedName (..), PartialType (..), Pattern,
34+
ResolverError (..), RunTimeError (..), StuckExpr, StuckF (..),
35+
TelomareLike (..), Term2, Term3, Term3Builder, Term3F (..),
3636
UnprocessedParsedTerm (..), UnprocessedParsedTermF (..),
3737
UnsizedRecursionToken (..), abortEE, appS, b2s, basicEE,
3838
convertAbort, convertAbortMessage, convertBasic, convertStuck,

src/Telomare/Possible.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ import Debug.Trace
5555
import GHC.Generics (Generic)
5656
import PrettyPrint
5757
import Telomare (AbortBase (..), AbortableF (..), AbstractRunTime (..),
58-
BasicBase (..), BasicExpr, CompiledExpr, FunctionIndex (..),
59-
LocTag (..), BasicExprF (..), PartialType (..),
58+
BasicBase (..), BasicExpr, BasicExprF (..), CompiledExpr,
59+
FunctionIndex (..), LocTag (..), PartialType (..),
6060
RunTimeError (..), StuckBase (..), StuckExpr, StuckExprF,
6161
StuckF (..), TelomareLike (fromTelomare, toTelomare),
6262
Term3 (..), Term3F (..),

src/Telomare/PossibleData.hs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ import GHC.Generics (Generic)
2727

2828
import Data.Bifunctor (first)
2929
import PrettyPrint
30-
import Telomare (AbortBase (..), AbortableF (..), BasicBase (..), CompiledExpr,
31-
FunctionIndex, LocTag (..), BasicExprF (..), PartialType (..),
32-
StuckBase (..), StuckF (..), TelomareLike (..),
33-
UnsizedRecursionToken (..), convertAbortMessage, convertBasic,
34-
convertStuck, indentWithChildren', indentWithOneChild',
30+
import Telomare (AbortBase (..), AbortableF (..), BasicBase (..),
31+
BasicExprF (..), CompiledExpr, FunctionIndex, LocTag (..),
32+
PartialType (..), StuckBase (..), StuckF (..),
33+
TelomareLike (..), UnsizedRecursionToken (..),
34+
convertAbortMessage, convertBasic, convertStuck,
35+
indentWithChildren', indentWithOneChild',
3536
indentWithTwoChildren')
3637

3738
debug' :: Bool

src/Telomare/RunTime.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ import System.IO (hGetContents)
2121
import System.Process (CreateProcess (std_out), StdStream (CreatePipe),
2222
createProcess, shell)
2323
import Telomare
24-
import Telomare.Possible (PPOut (..), basicStep, stuckStep,
25-
transformNoDefer)
24+
import Telomare.Possible (PPOut (..), basicStep, stuckStep, transformNoDefer)
2625
import Text.Read (readMaybe)
2726

2827
debug :: Bool

src/Telomare/TypeChecker.hs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ import Data.Set (Set)
2020
import qualified Data.Set as Set
2121
import Debug.Trace
2222
import PrettyPrint
23-
import Telomare (AbortableF (..), FunctionIndex (FunctionIndex), LocTag (..),
24-
BasicExprF (..), PartialType (..), StuckF (..), Term3,
25-
Term3F (..), TypeCheckError (..), pattern AbortFW,
26-
pattern BasicFW, pattern PairB, pattern StuckFW, pattern ZeroB)
23+
import Telomare (AbortableF (..), BasicExprF (..),
24+
FunctionIndex (FunctionIndex), LocTag (..), PartialType (..),
25+
StuckF (..), Term3, Term3F (..), TypeCheckError (..),
26+
pattern AbortFW, pattern BasicFW, pattern PairB,
27+
pattern StuckFW, pattern ZeroB)
2728

2829
debug :: Bool
2930
debug = False

0 commit comments

Comments
 (0)