diff options
| author | Eugen Wissner <belka@caraus.de> | 2025-01-14 20:00:11 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2025-01-14 20:00:11 +0100 |
| commit | 9cafd8d97ddd7a366585efd29a203d993470c588 (patch) | |
| tree | 968b86550d2bbef71850ecb06620a291b9b5cb80 /lib/Graphics/Fountainhead/Metrics.hs | |
| parent | 099915650815850f56f517a0d918ebb5191bcc55 (diff) | |
| download | fountainhead-9cafd8d97ddd7a366585efd29a203d993470c588.tar.gz | |
Make compatible with GHC2025
Diffstat (limited to 'lib/Graphics/Fountainhead/Metrics.hs')
| -rw-r--r-- | lib/Graphics/Fountainhead/Metrics.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Graphics/Fountainhead/Metrics.hs b/lib/Graphics/Fountainhead/Metrics.hs index d298775..d67b090 100644 --- a/lib/Graphics/Fountainhead/Metrics.hs +++ b/lib/Graphics/Fountainhead/Metrics.hs @@ -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) |
