Skip to content

Commit

Permalink
defined <&> for old versions of base
Browse files Browse the repository at this point in the history
  • Loading branch information
BebeSparkelSparkel committed Apr 30, 2024
1 parent 067b43d commit 3817d2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion benchmarks/haskell/Benchmarks/FileWrite.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ module Benchmarks.FileWrite

import Control.DeepSeq (NFData, deepseq)
import Data.Bifunctor (first)
import Data.Functor ((<&>))
import Data.String (fromString)
import Data.Text (StrictText)
import Data.Text.Lazy (LazyText)
Expand Down Expand Up @@ -69,3 +68,6 @@ mkFileWriteBenchmarks mkSinkNRemove = do
where
strict = fst
lazy = snd

(<&>) :: Functor f => f a -> (a -> b) -> f b
(<&>) = flip fmap

0 comments on commit 3817d2c

Please sign in to comment.