basvandijk/levmar — Issue #3: *** Exception: toEnum{StopReason}: tag (-1) is outside of enumeration's range (0,6)
Author: alang9
Created: 2012-02-11 07:18:37+00:00
State: open

I get the following runtime error in ghc 7.0.3 and ghc 7.2.1

> levmar (const (singleton 0)) Nothing (replicate 2 0) (singleton 0) 0 defaultOpts mempty
Right (fromList [0.0,0.0],*** Exception: toEnum{StopReason}: tag (-1) is outside of enumeration's range (0,6)

This appears to happen whenever the parameters vector has length 2 or greater