diff --git a/src/Handler/Course.hs b/src/Handler/Course.hs index 99c242802..eb0936540 100644 --- a/src/Handler/Course.hs +++ b/src/Handler/Course.hs @@ -34,10 +34,10 @@ colCourse = sortable (Just "course") (i18nCell MsgCourse) anchorCell (CourseR courseTerm courseSchool courseShorthand CShowR) [whamlet|#{display courseName}|] -colCourseDescr :: IsDBTable m a => Colonnade Sortable CourseTableData (DBCell m a) -colCourseDescr = sortable (Just "course") (i18nCell MsgCourse) $ do - course <- view $ _dbrOutput . _1 . _entityVal - return $ courseCell course +-- colCourseDescr :: IsDBTable m a => Colonnade Sortable CourseTableData (DBCell m a) +-- colCourseDescr = sortable (Just "course") (i18nCell MsgCourse) $ do +-- course <- view $ _dbrOutput . _1 . _entityVal +-- return $ courseCell course colDescription :: IsDBTable m a => Colonnade Sortable CourseTableData (DBCell m a) colDescription = sortable Nothing mempty @@ -51,19 +51,19 @@ colCShort = sortable (Just "cshort") (i18nCell MsgCourseShort) $ \DBRow{ dbrOutput=(Entity _ Course{..}, _, _, _) } -> anchorCell (CourseR courseTerm courseSchool courseShorthand CShowR) [whamlet|#{display courseShorthand}|] -colCShortDescr :: IsDBTable m a => Colonnade _ CourseTableData (DBCell m a) -colCShortDescr = sortable (Just "cshort") (i18nCell MsgCourseShort) - $ \DBRow{ dbrOutput=(Entity _ Course{..}, _, _, _) } -> mappend - ( anchorCell (CourseR courseTerm courseSchool courseShorthand CShowR) [whamlet|#{display courseShorthand}|] ) - ( case courseDescription of - Nothing -> mempty - (Just descr) -> cell - [whamlet| - $newline never -
Come to where the functional is!
+ This is not a joke, this is serious!
+ Functional programming can be done in Haskell!
+
Consider some numbers
+
+ $forall n <- nbrs
+