Skip to content

Commit

Permalink
formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
jterbraak committed Jul 17, 2024
1 parent ee5ae95 commit 229209d
Show file tree
Hide file tree
Showing 9 changed files with 3,553 additions and 1,372 deletions.
295 changes: 155 additions & 140 deletions deku-core/src/Deku/Core.purs

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions deku-core/src/Deku/FullDOMInterpret.purs
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ import Deku.Interpret as I
fullDOMInterpret :: Core.DOMInterpret
fullDOMInterpret = Core.DOMInterpret
{ makeElement: I.makeElementEffect
, attachElement : I.attachElementEffect
, attachElement: I.attachElementEffect
, setProp: I.setPropEffect
, setCb: I.setCbEffect
, unsetAttribute: I.unsetAttributeEffect
, removeElement: I.removeElementEffect
--
, makeText: I.makeTextEffect
, attachText : I.attachTextEffect
, attachText: I.attachTextEffect
, setText: I.setTextEffect
, removeText: I.removeTextEffect
--
, beamRegion : I.beamRegionEffect
, bufferPortal : I.bufferPortal
, beamRegion: I.beamRegionEffect
, bufferPortal: I.bufferPortal
}
58 changes: 29 additions & 29 deletions deku-core/src/Deku/Internal/Entities.purs
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
module Deku.Internal.Entities where

import Unsafe.Coerce (unsafeCoerce)

data DekuElement

toDekuElement :: forall @a . a -> DekuElement
toDekuElement = unsafeCoerce

fromDekuElement :: forall @a . DekuElement -> a
fromDekuElement = unsafeCoerce

data DekuText

toDekuText :: forall @a . a -> DekuText
toDekuText = unsafeCoerce

fromDekuText :: forall @a . DekuText -> a
fromDekuText = unsafeCoerce

data DekuEvent

toDekuEvent :: forall @a . a -> DekuEvent
toDekuEvent = unsafeCoerce

fromDekuEvent :: forall @a . DekuEvent -> a
fromDekuEvent = unsafeCoerce

newtype DekuChild = DekuChild DekuElement
module Deku.Internal.Entities where

import Unsafe.Coerce (unsafeCoerce)

data DekuElement

toDekuElement :: forall @a. a -> DekuElement
toDekuElement = unsafeCoerce

fromDekuElement :: forall @a. DekuElement -> a
fromDekuElement = unsafeCoerce

data DekuText

toDekuText :: forall @a. a -> DekuText
toDekuText = unsafeCoerce

fromDekuText :: forall @a. DekuText -> a
fromDekuText = unsafeCoerce

data DekuEvent

toDekuEvent :: forall @a. a -> DekuEvent
toDekuEvent = unsafeCoerce

fromDekuEvent :: forall @a. DekuEvent -> a
fromDekuEvent = unsafeCoerce

newtype DekuChild = DekuChild DekuElement
newtype DekuParent = DekuParent DekuElement
Loading

0 comments on commit 229209d

Please sign in to comment.