Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

Commit

Permalink
feat(core): rewrote the whole layout generation algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
prescientmoon committed Oct 27, 2020
1 parent 0d58cf9 commit 81195df
Show file tree
Hide file tree
Showing 3 changed files with 298 additions and 186 deletions.
2 changes: 0 additions & 2 deletions packages/core/spago.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@
, "psci-support"
, "record"
, "strings"
, "transformers"
, "tuples"
, "typelevel-prelude"
, "undefined"
, "fixed-points"
, "matryoshka"
, "lunarflow-utils"
, "lunarflow-benchmarks"
]
, packages = ../../packages.dhall
, sources = [ "src/**/*.purs" ]
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/Ast.purs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ module Lunarflow.Ast
import Prelude
import Control.Monad.Reader (Reader, asks, local, runReader)
import Data.Debug (class Debug, genericDebug)
import Lunarflow.Mu (Mu)
import Data.Generic.Rep (class Generic)
import Data.Generic.Rep.Show (genericShow)
import Data.List as List
import Data.Maybe (Maybe(..))
import Data.Tuple (Tuple(..))
import Lunarflow.Mu (Mu, TacitRepr)
import Matryoshka (class Corecursive, Algebra, GAlgebra, cata, embed, para, project)

-- | The meat and potatoes of representing an expression.
Expand All @@ -40,7 +40,7 @@ derive instance functorAst :: Functor (AstF v c l)
instance showAst :: (Show v, Show c, Show l, Show f) => Show (AstF v c l f) where
show = genericShow

instance debugAst :: (Debug v, Debug c, Debug l, Debug r) => Debug (AstF v c l r) where
instance debugAst :: (Debug v, Debug c, Debug l) => Debug (AstF v c l TacitRepr) where
debug = genericDebug

-- | The fixpoint of the ast functor.
Expand Down
Loading

0 comments on commit 81195df

Please sign in to comment.