Skip to content

Commit

Permalink
make ormolu happy
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz committed Jan 23, 2023
1 parent 697f830 commit 2721b98
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 46 deletions.
86 changes: 43 additions & 43 deletions src/Juvix/Compiler/Backend/Geb/Language.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,46 +8,46 @@ import Juvix.Prelude
(https://github.com/anoma/geb/blob/main/src/specs/geb.lisp).
-}

data Case = Case {
_caseLeftType :: Type,
_caseRightType :: Type,
_caseCodomainType :: Type,
_caseOn :: Geb,
_caseLeft :: Geb,
_caseRight :: Geb
}
data Case = Case
{ _caseLeftType :: Type,
_caseRightType :: Type,
_caseCodomainType :: Type,
_caseOn :: Geb,
_caseLeft :: Geb,
_caseRight :: Geb
}

data Pair = Pair {
_pairLeftType :: Type,
_pairRightType :: Type,
_pairLeft :: Geb,
_pairRight :: Geb
}
data Pair = Pair
{ _pairLeftType :: Type,
_pairRightType :: Type,
_pairLeft :: Geb,
_pairRight :: Geb
}

data Fst = Fst {
_fstLeftType :: Type,
_fstRightType :: Type,
_fstValue :: Geb
}
data Fst = Fst
{ _fstLeftType :: Type,
_fstRightType :: Type,
_fstValue :: Geb
}

data Snd = Snd {
_sndLeftType :: Type,
_sndRightType :: Type,
_sndValue :: Geb
}
data Snd = Snd
{ _sndLeftType :: Type,
_sndRightType :: Type,
_sndValue :: Geb
}

data Lamb = Lamb {
_lambVarType :: Type,
_lambBodyType :: Type,
_lambBody :: Geb
}
data Lamb = Lamb
{ _lambVarType :: Type,
_lambBodyType :: Type,
_lambBody :: Geb
}

data App = App {
_appDomainType :: Type,
_appCodomainType :: Type,
_appLeft :: Geb,
_appRight :: Geb
}
data App = App
{ _appDomainType :: Type,
_appCodomainType :: Type,
_appLeft :: Geb,
_appRight :: Geb
}

-- | Corresponds to the GEB type for terms: `stlc`
-- (https://github.com/anoma/geb/blob/main/src/specs/lambda.lisp).
Expand All @@ -64,15 +64,15 @@ data Geb
| GebApp App
| GebVar Int

data Prod = Prod {
_prodLeft :: Type,
_prodRight :: Type
}
data Prod = Prod
{ _prodLeft :: Type,
_prodRight :: Type
}

data Coprod = Coprod {
_coprodLeft :: Type,
_coprodRight :: Type
}
data Coprod = Coprod
{ _coprodLeft :: Type,
_coprodRight :: Type
}

-- | Corresponds to a subset of the GEB type `substobj`
-- (https://github.com/anoma/geb/blob/main/src/specs/geb.lisp).
Expand Down
2 changes: 1 addition & 1 deletion src/Juvix/Compiler/Backend/Geb/Pretty/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ module Juvix.Compiler.Backend.Geb.Pretty.Base
)
where

import Juvix.Prelude
import Juvix.Compiler.Backend.Geb.Language
import Juvix.Compiler.Backend.Geb.Pretty.Options
import Juvix.Data.CodeAnn
import Juvix.Extra.Strings qualified as Str
import Juvix.Prelude

doc :: PrettyCode c => Options -> c -> Doc Ann
doc opts =
Expand Down
4 changes: 2 additions & 2 deletions src/Juvix/Compiler/Core/Info/TypeInfo.hs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module Juvix.Compiler.Core.Info.TypeInfo where

import Juvix.Compiler.Core.Data.InfoTable
import Juvix.Compiler.Core.Extra
import Juvix.Compiler.Core.Info qualified as Info
import Juvix.Compiler.Core.Language
import Juvix.Compiler.Core.Extra
import Juvix.Compiler.Core.Data.InfoTable

newtype TypeInfo = TypeInfo {_infoType :: Type}

Expand Down

0 comments on commit 2721b98

Please sign in to comment.