å¦ç¿ãã¦ããHaskellã®Webãã¬ã¼ã ã¯ã¼ã¯ã§ããYesodã¨ãã»ãã·ã§ã³ç®¡çããµãã¼ãããã©ã¤ãã©ãªã§ããserversessionãçµã¿åããã¦åããã¦ã¿ã¾ããã ä»åã¯ãstackã®templateã§ããyesodweb/simpleãå©ç¨ãã¦ãredissessionã¨ããããã¸ã§ã¯ãåã«ãã¾ããã ä»åã¯ãSessionã¹ãã¬ã¼ã¸ã«Redisã使ãããã£ãã®ã§ãserversessionã¨ããã©ã¤ãã©ãªã使ãã¾ããã ï¼ãã®ã©ã¤ãã©ãªã¯é·ããã¨ã¡ã³ããã³ã¹ããã¦ããªãããã§ãããä»åã¯Haskellã§ã®ã»ãã·ã§ã³å¨ãã®å®è£ ä¾ãè¦ã¦ã¿ããã¨ãç®çãªã®ã§ãæ°ã«ããé²ã¿ã¾ããï¼ ã¾ãã¯ãpackage.yamlã«serversessionããã±ã¼ã¸ã®æ å ±ã追è¨ãã¾ãã ããã³ãã¨ã³ãã¨ãã¦Yesodãããã¯ã¨ã³ãã¨ãã¦Redisã使ç¨ããã®ã§ãserversession-front
To continue our series on Haskell in production, we have an interview with Jezen Thomas, the CTO of Riskbook. Riskbook is a marketplace that connects reinsurance brokers and underwriters, and Haskell has been working out quite well for them. In the interview, we talk about how Haskell can be a blessing when introducing changes to the codebase, what libraries and extensions they use in their projec
åé¡æè ã¢ãã³ã¨ããã¨ææ§ã§ãããæ³å®ãã¦ããã®ã¯Node.jsã®npmã§ãpugãsassãtypescriptãªã©ä½¿ãåæã®è¯ãaltè¨èªãèªåãã«ãããªããéçºããæãã§ãã æ²ãããã¨ã«ãHaskellã®ããã³ãã¨ã³ãéçºã¯å¿é¿ãããã¡ã§ãã ããã¯ã¨ã³ãï¼ãµã¼ãã¼å´ï¼ãHaskellã§å®è£ ããå ´åãããã³ãã¨ã³ãï¼ã¯ã©ã¤ã¢ã³ãå´ï¼ã¯ã©ãéçºããã°é¢åããããªãã®ã§ããããï¼ ãããSPAã®ããã«JSON APIãä»ãã¦ããã¯ã¨ã³ãã¨ããã³ãã¨ã³ããåé¢ãããªããHaskellã¯ããã¯ã¨ã³ãã ããããã³ãã¨ã³ãã¯npmã§ãã«ãå¯è½ãªèªç±ãªè¨èªã¨ããé¸æãã§ãã¾ãã ä¾ãã°servant+elmã¯ããæãã§ããã ãã®å ´åã¯ããã¾ãåé¡ã«ã¯ãªãã¾ããã ããããSPAã¯ä¸è¬ã«ç®¡çãã¡ã¤ã«ã¨ã³ã¼ãè¨è¿°éãå¤ããªãã¾ãã ãããã£ã¦ãå°è¦æ¨¡ã§ãã©ã¦ã¶ã®åçå¦çãå°ãªãå ´åã¯ãSPAã«ã
Haskellã®ã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯Yesodã®å ¥éæ¸ï¼ ãHaskellã§ä½ãWebã¢ããªã±ã¼ã·ã§ã³ãé åããã¦å¦ã¶Yesodå ¥éãçºè¡ æè¡æ¸å ¸ã·ãªã¼ãºãï¼æã®æ°å
Posted on March 19, 2018 authored by Shinya Yamaguchi Last Updated March 19, 2018 ã¯ããã« ä»å㯠Yesod ã使ã£ã¦ããããã¢åãæ å ±ã§ãã Yesod ã«ã¯ãµããµã¤ãã¨ããæ©è½ããããYesod Book ã® Creating a Subsite ã§ä¸éãã®ä½¿ãæ¹ã説æããã¦ãã¾ãã ç°¡åã«è¨ãã°ãç°ãªã Yesod ã¢ããªã±ã¼ã·ã§ã³ã§å ±éã®ã³ã³ãã¼ãã³ã (èªè¨¼ã·ã¹ãã ç) ãå©ç¨ããããã«ä½¿ããããã§ãã scaffolded site ã使ã£ã¦ãã人㯠yesod-static ããã±ã¼ã¸ã§æä¾ããã¦ãã Static åããµããµã¤ãã¨ãã¦å©ç¨ãã¦ãããã¨ã§ãããã Yesod ã®ãã¼ã¸ã§ã³ã 1.6 ã«ä¸ãã£ãå½±é¿ã«ãã Yesod Book ã®å 容ããã®ã¾ã¾ã§ã¯åããªããªã£ã¦ãããããã³ã¼ãã
Posted on January 27, 2018 translated by Kotaro Ohsugi authored by Michael Snoyman Original post: Upcoming Yesod breaking changes 2018å¹´ 1æ 11æ¥ Michael Snoyman ç§ãä½ã£ãã©ã¤ãã©ãªã®ç ´å£çå¤æ´ç¹ã«ã¤ãã¦è©±ããã¦ãã¾ããããYesod ããã®å¤æ´ããåãæ®ãããã¯ããã¾ããã§ãããyesod-core 㯠2014å¹´ãããã¼ã¸ã§ã³1.4 ã§å®å®ãã¦ãã¾ããããããç§ã®ããã±ã¼ã¸ã¨ã³ã·ã¹ãã ã«ããã MonadUnliftIO ã®å¤æ´ã¯ Yesod ã«ãå½±é¿ãã¦ããã§ããããåé¡ã¯ãã©ã®ç¨åº¦ãã¨ãããã¨ã§ãã ç¥ããªã人ã®ããã«è£è¶³ãã¦ããã¨ãMonadUnliftIO 㯠monad-control 㨠exceptions ã«ãããã
ãã®è¨äºã¯Haskell(ãã®3) Advent Calendar 2017ã®22æ¥ç®ã®è¨äºã«ãªãã¾ãï¼ ãããï¼Haskellã§ä»äºã§ãããã©ãã ã幸ããï¼ã ããããHaskell好ããªæ¹ã«ã¯ãããã£ãæ¹ãå¤ãã¨æãã¾ãï¼ ã§ããï¼å®æ ã¨ãã¦C++ãC#, Pythonã¨ãã£ã主åå¢åã®å¤ãä¼æ¥ãå£ä½ã®ä¸ã§ï¼ä¸äººHaskellãæ¨ãã¦ãã£ãã¨ããã§ç¼ãç³ã«æ°´ï¼ ãªãã§ããããï¼ããã¯ï¼Haskellãå ±éè¨èªã§ã¯ãªãããã§ãï¼ ããã¯ã¿ãªãããæ¿ç¥ã§ãããï¼ ãªã®ã§ï¼ç¤¾å ã»ç¤¾å¤ã®åå¼·ä¼ãå©ç¨ããããã§ããï¼å¦ä½ããï¼ãã§ã«ä»è¨èªã§æ¸ããã¦ãããã®ãç½®ãæãããæ©è½è¿½å ããã®ã¯ãã¯ããã¼ãã«ãé«ãããã§ãï¼ ãªãã§ããããï¼ å½¼ãã¯ãã£ã¨ããããã§ãããï¼ ãã ã£ã¦ï¼Pythonã®æ¹ãæ £ãã¦ããã æ £ãï¼ ããï¼ã¤ã¾ãæ £ããªã®ã§ãï¼ ç§ãã¡ã ã£ã¦ï¼è±èªã¯èªã¿æ¸ãã§ããããã©ï¼æ¥å¸¸ã®å¤ãã®
Clojurianæã Haskellerã§ã©ãã©ã¤ã!ãã¡ã³(æµ·æªð¹&æâµæ¨ã)ã®lagénorhynque (a.k.a. ã«ãã¤ã«ã«)ã§ãã Opt Technologiesæå±ã§ãæ®æ®µã¯åºåéç¨ã«é¢ãã社å åããããã¯ããPHP, TypeScript, Clojureã§éçºãã¦ãã¾ãã æè¿ã¾ã§ã«Clojureããããã¯ãã«å°å ¥ããããHaskell/Elmãããã¯ãã®éçºè ãåéãããã¨ã社å ã§ãClojureãHaskellã¨ãã£ãè¨èªã¸ã®æ³¨ç®åº¦ãããã¾ã§ä»¥ä¸ã«é«ã¾ã£ã¦ãã¾ã(æè¨)ã ããã§ä»åã¯ãä»å¹´11æããæ°ãã«å§ã¾ã£ãClojureåå¼·ä¼clj-nakanoã§ã®èª²é¡ãé¡æã«ãHaskellã§ã®Web APIéçºã«å ¥éãã¦ã¿ããã¨ã«ãã¾ããã ã¡ãªã¿ã«clj-nakanoã¨ããã°ãClojureéçºè Rich Hickeyã®Clojure/conj 2017ã§ã®ãã¼ã
ã²ã¼ã 販売webã¢ããªã±ã¼ã·ã§ã³SYAKERAKEãæ¯ããæè¡, Haskellã¨Yesodã§ä½ããã¦ãã¾ã Haskell (ãã®3) Advent Calendar 2017 - Qiitaã®3æ¥ç®ã®è¨äºã§ã. ãã®åï½¢Haskellã§æ¸ãããwebãµã¼ãã¹ã£ã¦ä½ããã?ï½£ã¨èããã¦, Hackageã¨ãStackageã®ãããªHaskellã«é¢é£ãããµã¼ãã¹ãããããããã¨åºãã¾ããã§ãã. ãªã®ã§, webã¢ããªã±ã¼ã·ã§ã³ã§ããSYAKERAKEãHaskell製ã§ãããã¨ã¨, ãããæ§æããã©ã¤ãã©ãªãªã©ãæ¸ãã¦ãããã¨æãã¾ã. SYAKERAKEãã©ããããµã¼ãã¹ãã¯ãµã¤ããè¦ã¦ãã£ã¦ãã ãã. ååãã®ãµã¼ãã¹ã®å®£ä¼ã§ã. ã許ããã ãã. ãã®è¨äºãèªããã¨ã§, å°è¦æ¨¡ãªããããããã¯ã·ã§ã³ã¬ãã«ã®webã¢ããªã±ã¼ã·ã§ã³ãHaskellã§ä½ããã¨ãããã¨ãããã£ã¦ããã ã
Yesod Advent Calendar 2016|18æ¥ç®ã§ãã Yesodã¯åå®å ¨ã追æ±ããå®ã«HaskellãããWebã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã§ãããDBã¢ã¯ã»ã¹ã«ãåå®å ¨ãå¾¹åºããã¦ãã¾ãã DBã«æ ¼ç´ããã¢ãã«ãå®ç¾©ããã®ã config/models ãã¡ã¤ã«ã§ãã stackã®ãã³ãã¬ã¼ãã使ã£ã¦ä½ã£ã models ãã¡ã¤ã«ã¯æ¬¡ã®ããã«ãªã£ã¦ãã¾ãã User ident Text password Text Maybe UniqueUser ident deriving Typeable Email email Text userId UserId Maybe verkey Text Maybe UniqueEmail email Comment json -- Adding "json" causes ToJSON and FromJSON instances
makeSessionBackend _ = Just <$> defaultClientSessionBackend 120 -- timeout in minutes "config/client_session_key.aes" ä¸è¨ã¯120åã«ãªã£ã¦ãã¾ãã ãªããå¤ã 0 ããã¨ã»ãã·ã§ã³ãä¸ç¬ããã¨ãç¶æãããªããªãã®ã§ãäºå®ä¸ã»ãã·ã§ã³ç®¡çããããªããªãã¾ããã¿ã¤ã ã¢ã¦ãããªããªãããã§ãªãã®ã§ã注æãã ã»ãã·ã§ã³ç®¡çãè¡ããªãããã«ãã å ´åã«ãã£ã¦ã¯Yesodã®ã»ãã·ã§ã³ç®¡çã使ããããªãå ´åãããã¨æãã¾ãã ãã®å ´åãFoundation.hsã®makeSessionBackendã§Nothingãè¿ãããã«ãã¾ãã ä¿®æ£å
stackã®ãã³ãã¬ã¼ãããçæããYesodã¢ããªã¯ãè¨å®ãã¡ã¤ã«ç¾¤ã config ãã£ã¬ã¯ããªã«æ ¼ç´ããã¦ãã¾ãã ãã®ä¸ã« settings.yml ã¨ãããã¡ã¤ã«ããããããã¯ç°å¢å¤æ°ããå¤ãåã£ãããç´æ¥å¤ãæ¸ãããã§ããè¨å®ãã¡ã¤ã«ã§ãã ä»åã¯ãã®ãã¡ã¤ã«ã«è¨å®ã追å ããæ¹æ³ãç´¹ä»ãã¾ãã config/settings.ymlã®å 容 ããã©ã«ãã§ã¯settings.ymlã®å 容ã¯æ¬¡ã®ããã«ãªã£ã¦ãã¾ãï¼DBã«Sqliteã使ãå ´åãã³ã¡ã³ãã¯çãã¦ããã¾ãï¼ã static-dir: "_env:STATIC_DIR:static" host: "_env:HOST:*4" # any IPv4 host port: "_env:PORT:3000" # NB: The port `yesod devel` uses is distinct from this value
Yesod Advent Calendar 2016ãéãã¦ããããã®ç¥è¦ãå¾ããããã¨ãå¬ããæãã¾ãã Yesodã¯ç´ æ´ããããã¬ã¼ã ã¯ã¼ã¯ã§ããHaskellãããå³å¯ãã«å¯¾ãããã ããã«æºã¡ã¦ãã¦ãWebã¢ããªå ã§ã®ãªã³ã¯åãã¯èµ·ãã¾ãããDBã¢ã¯ã»ã¹ã«ãåå®å ¨ã«ãã ããæããã¦ãã¦ã常ã«ããä½ãã«å®ããã¦ãããæè¦ã§ããã°ã©ã ãããã¨ãåºæ¥ã¾ãã ãããã»ã»ã»åå®å ¨ãæ¨ã¦ãã°ãªããªãæãããã¾ããæ¨ä»ã®ã¯ã©ã¤ã¢ã³ãå´ã¯Reactã§æ§ç¯ãããã¨ãå¤ãããã®å ´åãWebãµã¼ãã¯APIã®ã¿ãæä¾ããã°å åãåå®å ¨ãªHTMLã®åºçªã¯ãªããªãã¾ãã ãã®å ´åãYesodã®æ¨å³ã¯ããªãç¡ããªãã¾ãããããã§ããããªãã«æå³ã¯ãã£ã¦ãç§ããªãªã¼ã¹ããWebã¢ããªã®å ´åããã¼ã¿éãå¤ããã¼ã¸ãéåãªã¹ããã§è¡¨ç¤ºããéã«ãReactã§ã¯é ããã¦è¾ãã£ãæã«ãhamletã§HTMLãçµã¿ç«ã¦ãæ¹éã«
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}