摘要: Haskell的代码:readMarkdown与writeHtmlString是pandoc中的函数,newString的作用是将String转换为IO CString。运行C#代码之后,出现错误:Attempted to read or write protected memory. This is often an indication that other memory is corrupt. 阅读全文
posted @ 2014-05-05 12:17 dudu 阅读(13772) 评论(2) 推荐(0) 编辑
摘要: 系统环境:Windows Server 2008 R2,Haskell Platform 2013.2.0.0,ghc 7.6.3,cabal 1.16.0。操作步骤:1. 安装Windows版Haskell Platform;2. 编写Haskell代码保存于.hs文件中;3. 编写C代码保存于.c文件中;编写cabal配置文件保存于.cabal文件中。 阅读全文
posted @ 2014-05-05 10:04 dudu 阅读(2171) 评论(3) 推荐(3) 编辑