Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
[PR Feedback] Use fromMaybe instead of maybe _ id
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsterling committed Sep 4, 2015
1 parent 43d424f commit 4c88f29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DOM/BrowserFeatures/Detectors.purs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Control.Monad.Eff.Exception
import qualified Data.Array as Arr
import qualified Data.List as L
import qualified Data.Map as M
import Data.Maybe (maybe)
import Data.Maybe (fromMaybe)
import Data.Foldable (foldr)
import Data.Traversable (traverse)
import Data.Tuple
Expand All @@ -33,6 +33,6 @@ detectInputTypeSupportMap = M.fromList <$> traverse (\t -> Tuple t <$> detectInp
detectBrowserFeatures :: forall e. Eff (dom :: DOM | e) BrowserFeatures
detectBrowserFeatures = do
inputTypeSupportMap <- detectInputTypeSupportMap
pure { inputTypeSupported : maybe false id <<< flip M.lookup inputTypeSupportMap
pure { inputTypeSupported : fromMaybe false <<< flip M.lookup inputTypeSupportMap
}

0 comments on commit 4c88f29

Please sign in to comment.