mirror of
https://github.com/The1Penguin/org-to-mafiauniverse.git
synced 2024-11-22 10:18:12 +00:00
Fixed issues in show for Info and better example
This commit is contained in:
parent
2cd0d66bb3
commit
813debec5d
18
app/Main.hs
18
app/Main.hs
@ -27,15 +27,15 @@ data Info =
|
|||||||
instance Show Info where
|
instance Show Info where
|
||||||
show :: Info -> String
|
show :: Info -> String
|
||||||
show info = case info of
|
show info = case info of
|
||||||
Bread text -> text
|
Bread text -> text ++ "\n"
|
||||||
List texts -> "[LIST]" ++ concatMap ((++) "[*] " . show) texts ++ "[/LIST]"
|
List texts -> "[LIST]" ++ concatMap ((++) "[*] " . show) texts ++ "[/LIST]\n"
|
||||||
Header text -> "[TITLE]" ++ text ++ "[/TITLE]"
|
Header text -> "[TITLE]" ++ text ++ "[/TITLE]\n"
|
||||||
Subheader text -> "[SIZE=4]" ++ text ++ "[/SIZE]"
|
Subheader text -> "[SIZE=4]" ++ text ++ "[/SIZE]\n"
|
||||||
Subsubheader text -> "[SIZE=2]" ++ text ++ "[/SIZE]"
|
Subsubheader text -> "[SIZE=2]" ++ text ++ "[/SIZE]\n"
|
||||||
Image (URL url) -> "[IMG]" ++ url ++ "[/IMG]"
|
Image (URL url) -> "[IMG]" ++ url ++ "[/IMG]\n"
|
||||||
Video (URL url) -> "[VIDEO]" ++ url ++ "[/VIDEO]"
|
Video (URL url) -> "[VIDEO]" ++ url ++ "[/VIDEO]\n"
|
||||||
Link (URL url) inf -> "[URL=\"" ++ url ++ "\"]" ++ show inf ++ "[/IMG]"
|
Link (URL url) inf -> "[URL=\"" ++ url ++ "\"]" ++ show inf ++ "[/URL]\n"
|
||||||
Spoiler inf -> "[SPOILER]" ++ concatMap show inf ++ "[/SPOILER]"
|
Spoiler inf -> "[SPOILER]" ++ concatMap show inf ++ "[/SPOILER]\n"
|
||||||
|
|
||||||
newtype Post = Post [Info]
|
newtype Post = Post [Info]
|
||||||
|
|
||||||
|
@ -3,7 +3,9 @@
|
|||||||
* Hello there
|
* Hello there
|
||||||
- Zeus has been scummy
|
- Zeus has been scummy
|
||||||
- Wisdom is just flopping around
|
- Wisdom is just flopping around
|
||||||
|
So based on this we should just kill Ikka
|
||||||
|
|
||||||
#+Begin
|
#+Begin
|
||||||
[[https://media.discordapp.net/attachments/866979075360555033/1019126077542629436/Tumblr_l_204100096696723.jpg]]
|
[[https://media.discordapp.net/attachments/866979075360555033/1019126077542629436/Tumblr_l_204100096696723.jpg]]
|
||||||
|
sdas
|
||||||
#+end
|
#+end
|
||||||
|
Loading…
Reference in New Issue
Block a user