Copyright | (c) Jon Schoning, 2015 |
---|---|
Maintainer | jonschoning@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
- data Posts = Posts {}
- data Post = Post {
- postHref :: !Text
- postDescription :: !Text
- postExtended :: !Text
- postMeta :: !Text
- postHash :: !Text
- postTime :: !UTCTime
- postShared :: !Bool
- postToRead :: !Bool
- postTags :: [Tag]
- boolFromYesNo :: Text -> Bool
- boolToYesNo :: Bool -> Text
- data PostDates = PostDates {
- postDatesUser :: !Text
- postDatesTag :: !Text
- postDatesCount :: [(Day, Int)]
- type DateCount = (Day, Int)
- data NoteList = NoteList {
- noteListCount :: !Int
- noteListItems :: [NoteListItem]
- data NoteListItem = NoteListItem {}
- data Note = Note {
- noteId :: !Text
- noteHash :: !Text
- noteTitle :: !Text
- noteText :: !Text
- noteLength :: !Int
- noteCreatedAt :: !UTCTime
- noteUpdatedAt :: !UTCTime
- readNoteTime :: String -> UTCTime
- showNoteTime :: UTCTime -> String
- type TagMap = HashMap Tag Int
- newtype JsonTagMap = ToJsonTagMap {}
- data Suggested
- = Popular [Text]
- | Recommended [Text]
- newtype DoneResult = ToDoneResult {
- fromDoneResult :: ()
- newtype TextResult = ToTextResult {}
- newtype UpdateTime = ToUpdateTime {}
- type Url = Text
- type Description = Text
- type Extended = Text
- type Tag = Text
- type Old = Tag
- type New = Tag
- type Count = Int
- type NumResults = Int
- type StartOffset = Int
- type Shared = Bool
- type Replace = Bool
- type ToRead = Bool
- type Date = Day
- type DateTime = UTCTime
- type FromDateTime = DateTime
- type ToDateTime = DateTime
- type Meta = Int
- type NoteId = Text
Posts
Post | |
|
boolFromYesNo :: Text -> Bool Source #
boolToYesNo :: Bool -> Text Source #
PostDates | |
|
Notes
NoteList | |
|
data NoteListItem Source #
Note | |
|
readNoteTime :: String -> UTCTime Source #
showNoteTime :: UTCTime -> String Source #
Tags
newtype JsonTagMap Source #
Popular [Text] | |
Recommended [Text] |
Scalars
newtype DoneResult Source #
ToDoneResult | |
|
newtype TextResult Source #
newtype UpdateTime Source #
Aliases
as defined by RFC 3986. Allowed schemes are http, https, javascript, mailto, ftp and file. The Safari-specific feed scheme is allowed but will be treated as a synonym for http.
type Description = Text Source #
up to 255 characters long
up to 65536 characters long. Any URLs will be auto-linkified when displayed.
type NumResults = Int Source #
type StartOffset = Int Source #
type DateTime = UTCTime Source #
UTC timestamp in this format: 2010-12-11T19:48:02Z. Valid date range is Jan 1, 1 AD to January 1, 2100 (but see note below about future timestamps).
type FromDateTime = DateTime Source #
type ToDateTime = DateTime Source #