@@ -942,16 +942,14 @@ sequence _f _p = undefined
942-------------------------------------------------------------------------------
942-------------------------------------------------------------------------------
943-- Alternative Collection
943-- Alternative Collection
944-------------------------------------------------------------------------------
944-------------------------------------------------------------------------------
946-- | See 'Streamly.Internal.Data.Parser.choice'.
946-- | See 'Streamly.Internal.Data.Parser.choice'.
948−-- /Unimplemented/
948+-- /Broken/
950{-# INLINE choice #-}
950{-# INLINE choice #-}
953− t (Parser m a b) -> Parser m a b
951+choice :: (MonadCatch m, Foldable t) => t (Parser m a b) -> Parser m a b
954−choice _ps = undefined
952+choice = foldl1 shortest
956-------------------------------------------------------------------------------
954-------------------------------------------------------------------------------
957-- Sequential Repetition
955-- Sequential Repetition