danbroooks · GitHub

Conversation

parsonsmatt

* Add `createRawSqlitePoolFromInfo`, `createRawSqlitePoolFromInfo_`,
`withRawSqlitePoolInfo`, and `withRawSqlitePoolInfo_` to match the existing
pool functions for regular `SqlBackend`. [#983](https://github.com/yesodweb/persistent/pull/983)
>>>>>>> master
tokenize t
| T.null t = []
| "-- | " `T.isPrefixOf` t = [DocComment t]
| "-- | " `T.isPrefixOf` t = [DocComment (T.drop 5 t)]

danbroooks

lns <- NEL.nonEmpty (T.lines txt)
NEL.nonEmpty $ mapMaybe parseLine (NEL.toList lns)

-- TODO: refactor to return (Line' NonEmpty)

@danbroooks danbroooks changed the title Refactoring quasi module Refactoring token parsing in quasi module

Mar 28, 2021

parsonsmatt

@parsonsmatt

Merged

7 tasks

@danbroooks

Labels

None yet

Read the original on github.com ↗