Skip to content

Commit

Permalink
Fix build broken by purescript warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
benradf committed Feb 18, 2024
1 parent 14681dc commit e644079
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions frontend/src/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import Data.Foldable (and, foldMap, for_, or, sequence_, traverse_)
import Data.Formatter.Number (formatNumber)
import Data.Int (toNumber)
import Data.Maybe (Maybe(..), fromMaybe, isJust, isNothing, maybe)
import Data.Number (abs)
import Data.Number as Number
import Data.Show as Show
import Data.String (joinWith, replaceAll, split, toLower, toUpper)
Expand Down Expand Up @@ -457,10 +456,10 @@ makeHoverPopup = do
label <- fromMaybe "" <$> Element.getAttribute "data:label" node
popupDiv <- createPopup mouseEvent title label nodeData
addClass popupDiv nodeType
showPopup popupDiv mouseEvent
showPopup popupDiv

showPopup :: Element -> MouseEvent -> Effect Unit
showPopup popupDiv mouseEvent = do
showPopup :: Element -> Effect Unit
showPopup popupDiv = do
flip Ref.modify_ popupState \s -> s { div = Just popupDiv }
appendElement popupDiv overlayDiv
onElementEvent popupDiv EventTypes.click Event.stopPropagation
Expand Down

0 comments on commit e644079

Please sign in to comment.