Skip to content

Added 'text' Router#7

Open
tomlokhorst wants to merge 6 commits into
MedeaMelana:masterfrom
tomlokhorst:master
Open

Added 'text' Router#7
tomlokhorst wants to merge 6 commits into
MedeaMelana:masterfrom
tomlokhorst:master

Conversation

@tomlokhorst

Copy link
Copy Markdown

Now disallowing slashes in strings, so you can do:

data Blog = Post { category :: String, title :: String }

blog :: Router r (Blog :- r)
blog = rPost / string / string

Added a dependency on Data.Text, as that's such a common library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant