Make compatible with GHC2025

This commit is contained in:
2025-01-14 20:00:11 +01:00
parent 0999156508
commit 9cafd8d97d
3 changed files with 8 additions and 5 deletions

View File

@@ -133,7 +133,8 @@ collectMetrics fontFile ttfContents =
(_processedState, Left initialResult) -> Left
$ MetricsParseError initialResult
(processedState, Right initialResult) -> do
let parseForMetrics' = parseForMetrics processedState initialResult
let parseForMetrics' :: String -> Parser a -> Either MetricsError a
parseForMetrics' = parseForMetrics processedState initialResult
NameTable{ nameRecord, variable } <- parseForMetrics' "name" nameTableP
psNameIndex <- maybeMetricsError (MetricsNameRecordNotFound 6)