Skip to content

Refactor & clean up #148

@epost

Description

@epost
  • Reformat examples/*.cql.
  • Move code in Language to Language.CQL.
  • Move code in Parser.hs to Parser/Program.hs.
    • Simplify code.
    • Clarify variable naming.
  • Move QuickCheck generator for parsers under test dir tree.
  • Tighten imports.
  • Organise test code sensibly.
  • Move dependencies in packages.yaml from dependencies to test dependencies where possible.
  • Split off Morphism.hs from Term.hs.
  • Split off Collage.hs from Term.hs.
  • Split off Presentation.hs from Instance.hs
  • Split off Algebra.hs from Instance.hs
  • move assembleGens from Instance into Collage
  • rename simplifyFix to simplifyTheory in Term.hs
    • rename simplify to simplifyTheoryStep in Term.hs
  • Introduce Theory type alias in Term.hs
  • Rename findSimplifiable -> findSimplifiableEqs in Term.hs
  • Rename simplifyAlg -> A.simplify
  • Rename presToCol to IP.toCollage
  • Rename schToCol to Schema.toCollage
  • Refactor schToCol
    • modularise uppgrading of EQuations
  • Rename tsToCol to Typeside.toCollage
  • Rename xxxToCol to Xxx.toCollage
  • Rename checkSatisfaction -> I.satisfiesSchema
  • Rename typecheckPresentation -> IP.typecheck
  • Use Carrier type alias in Instance.hs
  • Split off Theory.hs from Term.hs? (Consider making it a submodule of something.)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions