Created
March 21, 2012 13:27
-
-
Save sw17ch/2146872 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
saveGrams :: (Serialize a, Serialize b) => DB -> [(a, b)] -> IO () | |
saveGrams db pairs = mapM_ put' pairs | |
where | |
put' (gram, indicies) = put db [] (encode gram) (encode indicies) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment