Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language-specific formatters #69

Open
isovector opened this issue Sep 25, 2020 · 0 comments
Open

Language-specific formatters #69

isovector opened this issue Sep 25, 2020 · 0 comments

Comments

@isovector
Copy link
Contributor

Someone (I can't remember who, sorry!) suggested that QuickSpec support a more generalized test formatter, capable of writing tests for languages other than Haskell. This seems extremely valuable to me, so I wanted to sketch out what I've been thinking. Happy to send a PR if you're interested, @nick8325 .

data Equation = Equation
  { binders :: [(Name, Type)]
  , lhs :: Expr
  , rhs :: Expr
  , ty :: Type
  , eqSort :: EqualitySort
  }

--   '==' vs '=~='
data EqualitySort = Equational | Observational

customFormatter :: (Equation -> String) -> PrintStyle

plus maybe some formatters for expressing Exprs in different ways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant