Skip to content
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

Re-export Query and Status #97

Merged
merged 1 commit into from
Aug 8, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/HTTPure.purs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ module HTTPure
, module HTTPure.Lookup
, module HTTPure.Method
, module HTTPure.Path
, module HTTPure.Query
, module HTTPure.Request
, module HTTPure.Response
, module HTTPure.Server
, module HTTPure.Status
) where

import HTTPure.Headers (Headers, empty, header, headers)
import HTTPure.Lookup (at, (!@), has, (!?), lookup, (!!))
import HTTPure.Method (Method(..))
import HTTPure.Path (Path)
import HTTPure.Query (Query)
import HTTPure.Request (Request, fullPath)
import HTTPure.Response
( Response
Expand Down Expand Up @@ -96,3 +99,4 @@ import HTTPure.Server
, serveSecure
, serveSecure'
)
import HTTPure.Status (Status)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think we should re-export all the status code aliases from HTTPure.Status as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that's possible because their names clash with functions in HTTPure.Response, and the response functions are much more useful :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, fair enough, agreed. Someone could always just import HTTPure.Status if they really needed them.