I would like to quote a file or a gist, but my company firewall is denying any such action.
Basically I have a very big enum (like ~200 constructors). I derive Generic for it and instances for Enum, Bounded and BoundedEnum (by generic… counterparts of typeclass functions). I run spago build… and wait.
Compiling the module takes about 3-4 minutes, taking 11GB of RAM at peak, and resulting .js file has enormous 15MB. Parcel takes another few minutes to package it after that. When I comment most of the constructors leaving 30-40, it compiles in 3 secs.
Am I doing something wrong, or is it a real issue? For now I think I will just create an array of all constructors and implement all functions by hand.