Sfoglia il codice sorgente

Rename "toPage" into "toOutput"

jherve 1 anno fa
parent
commit
5fc57df28f
2 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 2 2
      src/Content.purs
  2. 2 2
      src/LinkedIn/Output.purs

+ 2 - 2
src/Content.purs

@@ -8,7 +8,7 @@ import Effect (Effect)
 import Effect.Class.Console (logShow)
 import Effect.Console (log)
 import LinkedIn (getContext, run)
-import LinkedIn.Output (toPage)
+import LinkedIn.Output (toOutput)
 import LinkedIn.Page.JobOffer (JobOfferPage)
 import LinkedIn.Page.Projects (ProjectsPage)
 import LinkedIn.Page.Skills (SkillsPage)
@@ -33,4 +33,4 @@ main = do
 
   case ctx of
     Left l -> logShow l
-    Right r -> unsafePartial $ toPage r dom >>= logShow
+    Right r -> unsafePartial $ toOutput r dom >>= logShow

+ 2 - 2
src/LinkedIn/Output.purs

@@ -12,8 +12,8 @@ import LinkedIn.PageUrl (PageUrl(..))
 import Type.Proxy (Proxy(..))
 import Web.DOM (Document)
 
-toPage ∷ Partial ⇒ PageUrl → Document → Effect (Either String Output)
-toPage ctx dom = case ctx of
+toOutput ∷ Partial ⇒ PageUrl → Document → Effect (Either String Output)
+toOutput ctx dom = case ctx of
   UrlProjects _ -> run (Proxy :: Proxy ProjectsPage) dom
   UrlSkills _ -> run (Proxy :: Proxy SkillsPage) dom
   UrlWorkExperience _ -> run (Proxy :: Proxy WorkExperiencesPage) dom