Skip to content

Commit

Permalink
fix(bench): compilation failures
Browse files Browse the repository at this point in the history
  • Loading branch information
sgillespie committed Mar 18, 2024
1 parent 0a3ae16 commit 3f66cec
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions bench/Main.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
module Main (main) where

import Data.Gibberish.Format
import Data.Gibberish.Trigraph (genTrigraph)
import Data.Gibberish.Types (Trigraph (..), Word (..))
import Data.Gibberish (Trigraph (..), Word (..), genTrigraph)
import Data.Gibberish.Formatting qualified as Fmt
import Paths_gibberish (getDataDir)

import Criterion.Main
Expand Down Expand Up @@ -34,12 +33,12 @@ main =
]

formatWords' :: [Text] -> Text
formatWords' = formatWords opts . map Word
formatWords' = Fmt.formatWords opts . map Word
where
opts =
FormatOpts
{ optMaxLen = MaxLen 100,
optMaxHeight = MaxHeight 1000,
optSeparator = Separator " ",
Fmt.FormatOpts
{ optMaxLen = Fmt.MaxLen 100,
optMaxHeight = Fmt.MaxHeight 1000,
optSeparator = Fmt.Separator " ",
optExactWords = Nothing
}

0 comments on commit 3f66cec

Please sign in to comment.