I have a domain declared somewhat like this:
domain ('a :: "domain") llist = LCons (lhd::"'a") (lazy ltl::"'a llist")
Can I additionally make this a codatatype, like this?
codatatype 'a llist = lbot:LNil | LCons(lhd:'a) (ltl:"'a llist")
What is a "domain"? Are you using some special package?
Sorry, forgot to mention it. It's a HOLCF domain.
Last updated: Dec 21 2024 at 16:20 UTC