advancedtelematic / quickcheck-state-machine

Test monadic programs using state machine based models
Other
203 stars 25 forks source link

expose constructors for Markov and Transition #304

Closed rdanitz closed 5 years ago

stevana commented 5 years ago

Lets not expose the internal structure of Markov, in case we want to change it later on.

I'd suggest we add a function: markovToAdjacencyMap :: Markov state cmd_ prob -> Map state (Map state (cmd, prob)) instead. (This type is what the alga library uses for labelled graphs.)