Closed identicalsnowflake closed 5 years ago
Ah, I see - addOption
returns a name as Option
, which is an internal alias for Word32
. Makes sense.
Might be better to have addOption :: HasCover m s => s -> [Int] -> m Int
or export the Option
alias and have solve :: HasCover m s => s -> ([ Option ] -> m ()) -> m ()
, as currently these two seem to refer to the same piece of data by different types.
I'm trying to examine solutions (rather than just the cardinality of the solution set) from the DLX module and I don't understand the results:
Four solutions are printed (
[8,6]
,[8,4]
,[3,6]
, and[3,4]
), but I'm not sure where it's coming up with those row names -- I expected the solutions[0,1]
,[0,2]
,[3,1]
, and[3,2]
.Am I interpreting these results incorrectly, or is something being garbled somewhere between the C API and the Haskell layer?