Further library additions and REPL updates

This commit is contained in:
2024-12-27 19:27:04 -06:00
committed by James Eversole
parent c718684963
commit 8c1243580f
4 changed files with 21 additions and 14 deletions

View File

@@ -78,7 +78,7 @@ ofNumber _ = Left "Invalid Tree Calculus number"
ofString :: T -> Either String String
ofString tc = case ofList tc of
Right list -> traverse (fmap toEnum . ofNumber) list
Left err -> Left err
Left err -> Left "Invalid Tree Calculus string"
ofList :: T -> Either String [T]
ofList Leaf = Right []