parsonsmatt / kale

A quick, easy, and declarative task runner for Haskell code to destroy your boiler plate!
BSD 3-Clause "New" or "Revised" License
33 stars 5 forks source link

Write more types! #3

Open parsonsmatt opened 7 years ago

parsonsmatt commented 7 years ago

Use newtype over the various Strings that are being passed around to make it difficult to mix them up.

colinwahl commented 7 years ago

Hey! I'd like to take a crack at this. It should be a good way to acquaint myself with the code, then I am thinking about looking at #1

parsonsmatt commented 7 years ago

awesome! Feel free to put up a PR when you can :)

Another possible idea -- rather than smashing a bunch of strings together, come up with a limited data Syntax = ... type that represents the limited fragment of Haskell syntax we're working with, and write a reasonable render :: Syntax -> String function for code gen.

colinwahl commented 7 years ago

Ah, just now seeing this after I submitted my PR #7 I like this data Syntax = ...idea a lot, and I would like to give it a shot. I will get to work on it tomorrow after class. Signing off for now :)