Make vhdl_ty and friends return errors with Either.
authorMatthijs Kooijman <m.kooijman@student.utwente.nl>
Fri, 3 Jul 2009 10:28:55 +0000 (12:28 +0200)
committerMatthijs Kooijman <m.kooijman@student.utwente.nl>
Fri, 3 Jul 2009 10:28:55 +0000 (12:28 +0200)
commit51de92c87cbd5a40c7e58480deef1af00418790f
tree7c0792c7445ab2be120359d8256bf5268c916c17
parentfba82861c8ba2aa62c47d718abe9b1ccfd502de9
Make vhdl_ty and friends return errors with Either.

Previously, error messages were passed forward. However, this does not
allow a type lookup to gracefully fail, which will be needed for
normalization soon. Now, error messages are returned using an Either
value, so they can be ignored at top level if needed.
VHDLTools.hs