Thanks a lot. It works !

I had to modify the pattern matching accordingly:

tryIt : FilterType -> Bool
tryIt ft = 
    case ft of
        TypeText f -> processTextFilter f (Just "toto")
        TypeFiles f -> processTextFilter f (Just "titi")
        TypeInt f -> 
            case f of
                NumberIs o -> o==2
                NumberIsNot o -> o/=2
                NumberIsEmpty -> False
                _ -> False
        _ -> False

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to