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 1
1
module DOM.HTML.History where
2
2
3
3
import Control.Monad.Eff (Eff )
4
- import DOM.HTML.Types (HISTORY , History , Window )
4
+ import DOM.HTML.Types (HISTORY , History )
5
+ import Data.Foreign (Foreign )
5
6
import Prelude (Unit )
6
7
7
8
-- DocumentTitle will set value of `document.title`
@@ -12,6 +13,6 @@ newtype URL = URL String -- Unsure how to better type this.
12
13
foreign import back :: forall e . History -> Eff (history :: HISTORY | e ) Unit
13
14
foreign import forward :: forall e . History -> Eff (history :: HISTORY | e ) Unit
14
15
foreign 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