ithika:
I was trying to write my own equivalent to Don Stewart's mkcabal but
ended up getting sidetracked. I made some generalised prompts for use at
the command line and wanted to get some feedback on them.
The full code can be found at [1] but the basic summary is like this:
prompt ::
Donald Bruce Stewart wrote:
Looks pretty good, though you use
case x :: Bool of
True - ...
False - ...
when
if x then ... else ...
would be preferred.
Why? Personally, I find boolean case to feel better wrt layout and I see
no loss of clarity in its use.