Giter Club home page Giter Club logo

haskell-servant.github.io's People

Contributors

alpmestan avatar arianvp avatar chobbes avatar dmjio avatar domenkozar avatar dredozubov avatar fisx avatar fizruk avatar franklinchen avatar ggreif avatar hrldcpr avatar jhedev avatar jkarni avatar johntyree avatar jsl avatar leifmetcalf avatar marijanp avatar mgeisler avatar phadej avatar soenkehahn avatar tchoutri avatar yamadapc avatar zudov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

haskell-servant.github.io's Issues

Version the tutorial

It would be nice to have multiple versions of the tutorial, corresponding to the major versions of servant. Preliminary work here.

The way I'd propose to do this:

  • Make separate branches for each version (e.g. versions/0.4, versions/0.5, etc.).
  • Make a separate branch for non-tutorial changes.
  • Make the deploy.sh script check what branch it's on.
    • If one of the version branches, then copy over only the tutorial content into an appropriate version subdir (tutorial/0.4/somecontent.html).
    • If the non-tutorial branch, only copy content outside of tutorial folder.
  • Redirect tutorial/somecontent.html to tutorial/<latest>/somecontent.html.
  • Make sure links still work locally and on travis.

Affiliation with the Haskell Foundation

Following the discussions that happened in the team I would like us to visibly vote in favour of our affiliation with the Haskell Foundation

This will cement Servant's place as a cornerstone of the ecosystem, as well as allow companies to make in-kind donations to the Foundation that can be directed to Servant.

@haskell-servant/maintainers let us vote. Please comment with your explicit approval.

Code from 2018-07-12 doesn't typecheck.

The pretty instance for Mul:

instance (Pretty l, Pretty r) => Pretty (Mul l r) where
  pretty (Mul a b) = unwords [autoParens a, "*", autoParens b]
    where autoParens a@(Add _ _) = "(" ++ pretty a ++ ")"
               autoParens                   a = pretty a

Gives the following error:

    • Couldn't match expected type ‘Add l0 r0’ with actual type ‘l’
      ‘l’ is a rigid type variable bound by
        the instance declaration
        at /home/leif/Documents/type-level/src/Lib.hs:91:10-49
    • In the first argument of ‘autoParens’, namely ‘a’
      In the expression: autoParens a
      In the first argument of ‘unwords’, namely
        ‘[autoParens a, "*", autoParens b]’
    • Relevant bindings include
        a :: l (bound at /home/leif/Documents/type-level/src/Lib.hs:92:15)
        pretty :: Mul l r -> String
          (bound at /home/leif/Documents/type-level/src/Lib.hs:92:3)

And the same for autoParens b. I think I'm missing a LANGUAGE pragma somewhere that would prevent autoParens (Add _ _) from collapsing to Add l r -> String.

refresh client-in-5-minutes.md

It would be nice if the client-in-5-minutes.md blog post could be refreshed to current servant.
AFAICT the code dates from around servant 0.4 (LTS 5), so it is not that easy to build any more.

Error in following the instruction mentioned in the doc.

I cloned the project and followed the instruction and I have got the following errors:

haskell-servant.github.io git:(hakyll) ✗ cabal build
Package has never been configured. Configuring with default flags. If this
fails, please run configure manually.
Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
trying: haskell-servant-github-io-0.4.0 (user goal)
next goal: pandoc (dependency of haskell-servant-github-io-0.4.0)
Dependency tree exhaustively searched.
Trying configure anyway.
Configuring haskell-servant-github-io-0.4.0...
cabal: Encountered missing dependencies:
hakyll ==4.6., pandoc ==1.13.

I am using the latest haskell-platform

GHCi, version 8.0.1: http://www.haskell.org/ghc/ :? for help
Prelude>

Is the doc up to date? Or is there anything beside listed steps that is missing? Thanks for your help.

Make it clear when one should import 'Servant' or 'Servant.API' in the tutorial

These past few days, a few folks asked why "import Servant" doesn't work when just depending on servant. We should make it clear quite early in the tutorial that Servant is the go-to module when writing a webapp and exports servant's combinators as well as all the server-side machinery, hence belonging to servant-server, whereas Servant.API "just" exports all the type-level combinators.

Getting started is impossible to view in Android Chrome

I'm 99% certain this is due to use of slidy.

Firstly, vertical scrolling is essentially completely broken. Scrolling down by touch brings up the menu and scrolling up just doesn't happen.

Secondly, whenever there is a wide element like a code snippet which causes horizontal scrolling to be enabled, page flipping by swipe doesn't work either.

Like I said, this is basically slidy, and I couldn't find an issue tracker for that so I'm raising it here so you know about it.

On the positive side, what I've been able to understand about Servant looks really interesting so I'll be checking it out further on a desktop browser.

Japanese translation

Could I publish Japanese translation of this document in my github pages in order to introduce servant to Japanese programmers? I would like to know the license and rules to publish translations if you have.

little bug fix for 2017-03-03-servant-and-db.markdown

Thank you for the post. Would you apply the patch, please.

$ git diff posts/2017-03-03-servant-and-db.markdown 
diff --git a/posts/2017-03-03-servant-and-db.markdown b/posts/2017-03-03-servant-and-db.markdown
index 6c62dc2..dc181c7 100644
--- a/posts/2017-03-03-servant-and-db.markdown
+++ b/posts/2017-03-03-servant-and-db.markdown
@@ -134,7 +134,7 @@ app' :: Pool Connection -> Logger -> Application
 app' pool logger = serve api $ hoistServer api nt $ createCat' :<|> readCat'
   where
     nt :: H x -> Handler x
-    nt m -> runLogT "api" logger (runReaderT (runH m) pool)
+    nt m = runLogT "api" logger (runReaderT (runH m) pool)

404 on servant.dev

Only noticed this problem recently but the main site doesn't load anymore.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.