force thunk for precalculated value
This commit is contained in:
parent
7f823b56af
commit
7f39415600
1 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,8 @@
|
|||
- Licensed under the GNU GPL version 3 or higher.
|
||||
-}
|
||||
|
||||
{-# LANGUAGE BangPatterns #-}
|
||||
|
||||
module Git.UpdateIndex (
|
||||
Streamer,
|
||||
pureStreamer,
|
||||
|
@ -29,7 +31,7 @@ type Streamer = (String -> IO ()) -> IO ()
|
|||
|
||||
{- A streamer with a precalculated value. -}
|
||||
pureStreamer :: String -> Streamer
|
||||
pureStreamer s = \streamer -> streamer s
|
||||
pureStreamer !s = \streamer -> streamer s
|
||||
|
||||
{- Streams content into update-index from a list of Streamers. -}
|
||||
streamUpdateIndex :: Repo -> [Streamer] -> IO ()
|
||||
|
|
Loading…
Reference in a new issue