<commit_before>module Test.Main where

import Prelude
import Control.Monad.Eff (Eff())
import Control.Monad.Eff.Console (CONSOLE(), log)

import Data.Traversable (traverse)
import qualified Data.BrowserFeatures.InputType as IT
import DOM
import DOM.BrowserFeatures.Detectors

main :: Eff (dom :: DOM, console :: CONSOLE) Unit
main = do
  features <- detectBrowserFeatures
  void $ flip traverse IT.allInputTypes \ty ->
    log $ show ty ++ if features.inputTypeSupported ty then " supported" else " not supported"<commit_msg>[PR Feedback] use `for` instead of `flip traverse`<commit_after>module Test.Main where

import Prelude
import Control.Monad.Eff (Eff())
import Control.Monad.Eff.Console (CONSOLE(), log)

import Data.Traversable (traverse, for)
import qualified Data.BrowserFeatures.InputType as IT
import DOM
import DOM.BrowserFeatures.Detectors

main :: Eff (dom :: DOM, console :: CONSOLE) Unit
main = do
  features <- detectBrowserFeatures
  void $ for IT.allInputTypes \ty ->
    log $ show ty ++ if features.inputTypeSupported ty then " supported" else " not supported"
{'fraction_non_alphanumeric': 0.0988909426987061, 'fraction_numerical': 0.0, 'mean_word_length': 4.885869565217392, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4176057', 'n_tokens_mistral': 326, 'n_tokens_neox': 316, 'n_words': 108}