@@ -214,6 +214,9 @@ instance MinBound Nat where
214instance Cast Integer Nat where
214instance Cast Integer Nat where
215 cast = fromInteger
215 cast = fromInteger
217+instance Cast String Nat where
218+ cast str = cast (the Integer (cast str))
217||| A wrapper for Nat that specifies the semigroup and monad instances that use (*)
220||| A wrapper for Nat that specifies the semigroup and monad instances that use (*)
218record Multiplicative where
221record Multiplicative where
219 constructor GetMultiplicative
222 constructor GetMultiplicative