This repository was archived by the owner on Oct 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11module DOM.HTML.History where
22
33import Control.Monad.Eff (Eff )
4- import DOM.HTML.Types (HISTORY , History , Window )
4+ import DOM.HTML.Types (HISTORY , History )
5+ import Data.Foreign (Foreign )
56import Prelude (Unit )
67
78-- DocumentTitle will set value of `document.title`
@@ -12,6 +13,6 @@ newtype URL = URL String -- Unsure how to better type this.
1213foreign import back :: forall e . History -> Eff (history :: HISTORY | e ) Unit
1314foreign import forward :: forall e . History -> Eff (history :: HISTORY | e ) Unit
1415foreign import go :: forall e . History -> Delta -> Eff (history :: HISTORY | e ) Unit
15- foreign import pushState :: forall a e . History -> a -> DocumentTitle -> URL -> Eff (history :: HISTORY | e ) Unit
16- foreign import replaceState :: forall a e . History -> a -> DocumentTitle -> URL -> Eff (history :: HISTORY | e ) Unit
17- foreign import state :: forall a e . History -> Eff (history :: HISTORY | e ) a
16+ foreign import pushState :: forall e . History -> Foreign -> DocumentTitle -> URL -> Eff (history :: HISTORY | e ) Unit
17+ foreign import replaceState :: forall e . History -> Foreign -> DocumentTitle -> URL -> Eff (history :: HISTORY | e ) Unit
18+ foreign import state :: forall e . History -> Eff (history :: HISTORY | e ) Foreign
You can’t perform that action at this time.
0 commit comments