diff options
Diffstat (limited to 'BStack.icl')
-rw-r--r-- | BStack.icl | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -11,8 +11,15 @@ where (==) (Int m) (Int n) = m == n (==) _ _ = False +instance toString Basic +where + toString (Bool b) = toString b + toString (Int i) = toString i + :: BStack :== [Basic] +instance toString BStack where toString xs = "[" <++ (",", xs) <+ "]" + bs_copy :: BSrc BStack -> BStack bs_copy i s = [bs_get i s:s] |