Skip to content
This repository was archived by the owner on Feb 9, 2020. It is now read-only.

Conversation

@justinwoo
Copy link
Contributor

@justinwoo justinwoo commented Apr 12, 2017

@justinwoo
Copy link
Contributor Author

updated and builds correctly 🍡

Copy link
Owner

@garyb garyb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks great apart from auto-wrapping QS!

-- | null if no such element exists.
querySelector :: forall n eff. IsParentNode n => String -> n -> Eff (dom :: DOM | eff) (Nullable N.Element)
querySelector selector = PN.querySelector selector <<< toParentNode
querySelector :: forall n eff. IsParentNode n => String -> n -> Eff (dom :: DOM | eff) (Maybe N.Element)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we update the argument to use QuerySelector rather than String here (and below)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, yeah, might as well. pushed it up

@justinwoo justinwoo force-pushed the 0.11 branch 2 times, most recently from 37afe85 to 8dc7292 Compare April 13, 2017 08:56
import DOM (DOM)
import DOM.Classy.Util (fromAny)
import DOM.Node.ParentNode (QuerySelector)
import Data.Maybe (Maybe)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, last one, can we un-psc-ide the import ordering? 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hah, all right, pushed it up. i forgot letting psc-ide import stuff jumbles up the imports.

@justinwoo
Copy link
Contributor Author

also got rid of the single import for queryselector

@garyb
Copy link
Owner

garyb commented Apr 13, 2017

Thanks!

@garyb garyb merged commit 5d8a4a2 into garyb:master Apr 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants