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
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-#LANGUAGE FlexibleInstances #-} | |
module CanBuildFrom where | |
import Data.Foldable | |
import Data.Map | |
data Builder from elem to = Builder { | |
result :: to, | |
add :: elem -> Builder from elem to |