This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Network.HTTP | |
import Data.ByteString.Lazy.Char8 as B | |
import Codec.Text.IConv | |
main :: IO() | |
main = do | |
htmlSrc <- openURL "http://flowermaster.web.fc2.com/lrnanido_sara.html" | |
let src = convert "CP932" "UTF-8" $ B.pack htmlSrc | |
B.putStrLn src | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.Attoparsec.ByteString.Char8 as AP | |
import Data.ByteString.Char8 as B | |
import Control.Applicative | |
data MusicData = MusicData { | |
dID :: Integer, | |
dLevel :: String, | |
dMusicTitle :: String, | |
dBmsID :: Integer, |