Replace the fake instance of Box for Content over Indexed Text with the true one using renderText

This commit is contained in:
Tissevert 2020-03-11 18:53:41 +01:00
parent c4c3e35e09
commit d3f1b97f3a

View file

@ -46,16 +46,10 @@ decodeString input = do
data Chunks = Chunks
instance Monad m => Box m Chunks Content (Indexed Text) where
r Chunks _ = return $ Map.fromList [(Id 17, "Test")]
{-
instance (MonadReader FontSet m, MonadFail m) => Box m Chunks Content (Indexed Text) where
r Chunks content = do
fontSet <- ask
renderText fontSet content
-}
renderText :: MonadFail m => FontSet -> Content -> m (Indexed Text)
renderText fontSet (Content.Content {contentUnits, Content.indexedInstructions}) =