Skip to content

Commit

Permalink
Remove unsafeToArray
Browse files Browse the repository at this point in the history
  • Loading branch information
jborkowski committed Apr 12, 2024
1 parent 2bbd3f8 commit 8ce4636
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Specular/Internal/Incremental/MutableArray.purs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@ import Prelude

import Effect (Effect)
import Effect.Uncurried (EffectFn1, EffectFn2)
import Unsafe.Coerce (unsafeCoerce)

foreign import data MutableArray :: Type -> Type

foreign import empty :: forall a. Effect (MutableArray a)

unsafeToArray :: forall a. MutableArray a -> Array a
unsafeToArray x = unsafeCoerce x

foreign import push :: forall a. EffectFn2 (MutableArray a) a Unit
foreign import length :: forall a. EffectFn1 (MutableArray a) Int

Expand Down

0 comments on commit 8ce4636

Please sign in to comment.