-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forms #32
Merged
+1,063
−148
Merged
Forms #32
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
1b468b0
Move FormUrlEncoded from servant.
jkarni 0e7f261
Fix test for `decodeForm . encodeForm`
cdepillabout ac72f9e
Fix PR so it works on ghc-7.8.
cdepillabout acc2cd4
Remove dependency on string-conversions package.
cdepillabout 97f200f
Replace uses for toUrlPiece and parseUrlPiece with toQueryParam and p…
cdepillabout dd1baa5
Change uses of String to Text.
cdepillabout 8ab1a1f
Add comments and doctests to the FormUrlEncoded module.
cdepillabout 6487f48
Add two convenience functions for encoding / decoding a ByteString di…
cdepillabout fb08da7
Rephrase documentation and amend some examples for FormUrlEncoded
fizruk 6ab8a56
Use a custom Show instanse for Form (like Map has)
fizruk 236c59a
Rename encode/decodeWith*From to encode/decodeAsForm
fizruk 7c3d63b
Ignore stack haddock's output to src/
fizruk 4233ec9
Move Form-related stuff to Web.FormUrlEncoded
fizruk 9b7a61d
Simplify To/FromForm instances for lists
fizruk 6e97168
Remove utf8-string dependency
fizruk f2a7554
Refactor decodeForm
fizruk 28713e6
Remove mtl dependency, simplify GToForm and GFromForm
fizruk 765249b
Add test case for empty form data
fizruk d04cfba
Refactor qualified names
fizruk 5322053
Allow duplicate keys in Form
fizruk 3d6065a
Add FormKey classes
fizruk a9976c2
Generalize ToForm/FromForm instances
fizruk 6cd7a03
Add ToForm/FormForm instances for IntMap and HashMap
fizruk 70060ee
Add helpers for FromForm instances
fizruk 0456604
Change Form's internal representation to HashMap
fizruk 550df9a
Export Generic-based toForm and fromForm
fizruk 173ef33
Fix Travis builds for GHC 7
fizruk 02fadd3
Rename encode/decode to urlEncode/urlDecode
fizruk ea020ae
Use uri-bytestring for a more efficient url-encoding and decoding
fizruk 5a448b3
Remove Generic support for sum types
fizruk e9c728b
Fix GHC 7.8 builds
fizruk d944721
Add instances for Natural (close #33)
fizruk fa05cca
Rename lookupKey -> lookupAll, improve docs a bit
fizruk 3158b55
Add notes that Generic-based implementation only works for records
fizruk bea3afe
Add nice type error for when ToForm/FromForm is derived for sum type
fizruk 7a7b274
Add basic FormOptions
fizruk 57c0a23
Fix unticked promoted constructors warning
fizruk 4bc8d3e
Treat Maybes and lists specially when deriving Generic instances
fizruk 9cb90d5
Fix GHC 7 builds
fizruk 2df7799
Re-export FormOptions
fizruk e613d05
Add an example for non-default FormOptions
fizruk de9fe0f
Enable ConstraintKinds and fix typo for GHC 7.8
fizruk f59b5c9
Add more docs explaining special roles of Maybe and lists
fizruk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Treat Maybes and lists specially when deriving Generic instances
commit 4bc8d3e767b15a8deac5890067ce7fb97b0e8608
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the examples!