-
-
Save zwilias/9df6e072fdb86899868c18e5257d41dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type FormData a = Data String | |
type Unsanitized = Unsanitized | |
type Sanitized = Sanitized | |
type alias Sanitizer = String -> String | |
fromString : String -> FormData Unsanitized | |
fromString data = Data data | |
sanitize : Sanitizer -> FormData Unsanitized -> FormData Sanitized | |
sanitize sanitizer (Data data) = | |
Data <| sanitizer data | |
submit : FormData Sanitized -> Cmd msg | |
submit = {- ... -} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment