-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from fizruk/cdepillabout-add-form-url-encoded
Forms
- Loading branch information
Showing
14 changed files
with
1,063 additions
and
148 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
:set -itest -isrc -optP-include -optP .stack-work/dist/x86_64-osx/Cabal-1.24.0.0/build/autogen/cabal_macros.h -optP-I -optPinclude |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
/tarballs/ | ||
*.swp | ||
.stack-work/ | ||
src/highlight.js | ||
src/style.css |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#if __GLASGOW_HASKELL__ >= 710 | ||
#define OVERLAPPABLE_ {-# OVERLAPPABLE #-} | ||
#define OVERLAPPING_ {-# OVERLAPPING #-} | ||
#else | ||
{-# LANGUAGE OverlappingInstances #-} | ||
#define OVERLAPPABLE_ | ||
#define OVERLAPPING_ | ||
#endif |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
-- | | ||
-- Convert Haskell values to and from @application/xxx-form-urlencoded@ format. | ||
module Web.FormUrlEncoded ( | ||
-- * Classes | ||
ToForm (..), | ||
FromForm (..), | ||
|
||
-- ** Keys for 'Form' entries | ||
ToFormKey(..), | ||
FromFormKey(..), | ||
|
||
-- * Encoding and decoding @'Form'@s | ||
urlEncodeAsForm, | ||
urlDecodeAsForm, | ||
|
||
urlEncodeForm, | ||
urlDecodeForm, | ||
|
||
-- * 'Generic's | ||
genericToForm, | ||
genericFromForm, | ||
|
||
-- ** Encoding options | ||
FormOptions(..), | ||
defaultFormOptions, | ||
|
||
-- * Helpers | ||
toEntriesByKey, | ||
fromEntriesByKey, | ||
|
||
lookupAll, | ||
lookupMaybe, | ||
lookupUnique, | ||
|
||
parseAll, | ||
parseMaybe, | ||
parseUnique, | ||
) where | ||
|
||
import Web.Internal.FormUrlEncoded | ||
|
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
Oops, something went wrong.