Don't use 'error' in eca generation, to prevent problems on --haskell