File tree Expand file tree Collapse file tree
mono-traversable/src/Data Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,16 +72,23 @@ instance GrowingAppend mono => GrowingAppend (NonNull mono)
7272
7373instance (Semigroup mono , GrowingAppend mono ) => Semigroup (NonNull mono ) where
7474 (<>) = unsafeMap2 (<>)
75+ {-# INLINE (<>) #-}
7576
7677instance SemiSequence seq => SemiSequence (NonNull seq ) where
7778 type Index (NonNull seq ) = Index seq
7879
7980 intersperse e = unsafeMap $ intersperse e
81+ {-# INLINE intersperse #-}
8082 reverse = unsafeMap reverse
83+ {-# INLINE reverse #-}
8184 find f = find f . toNullable
85+ {-# INLINE find #-}
8286 cons x = unsafeMap $ cons x
87+ {-# INLINE cons #-}
8388 snoc xs x = unsafeMap (flip snoc x) xs
89+ {-# INLINE snoc #-}
8490 sortBy f = unsafeMap $ sortBy f
91+ {-# INLINE sortBy #-}
8592
8693instance SemiSetContainer set => SemiSetContainer (NonNull set ) where
8794 type ContainerKey (NonNull set ) = ContainerKey set
You can’t perform that action at this time.
0 commit comments