nobsun
evalShow :: Int -> Expr -> String
というのを実装してみました.値の近似列を指定した段数まで,または,確定するまで表示します.
というのを実装してみました.値の近似列を指定した段数まで,または,確定するまで表示します.
Por (Con 1) (Con 2) と Por (Let (...) (Con 1)) (Con 2) が違う値になってしまうのが気持ち悪いかな…>>> eval $ Div (Con 1) (Con 0) `Por` Con 1 1 >>> eval $ Div (Con 1) (Con 0) `Por` Div (Con 1) (Con 1) *** Exception: divide by zero
MonadPlus m であれば m a はモノイド、ならシンプルかつ正しい主張でいいんですけど。stack exec -- pacman -S libiconv-devel
stack build --extra-include-dirs="$(stack path --programs)\msys2-20180531\usr\include" --extra-lib-dirs="$(stack path --programs)\msys2-20180531\usr\lib"
--- a/iconv.cabal
+++ b/iconv.cabal
@@ -26,7 +26,7 @@ library
includes: hsiconv.h
include-dirs: cbits
c-sources: cbits/hsiconv.c
- if os(darwin) || os(freebsd)
+ if os(darwin) || os(freebsd) || os(windows)
-- on many systems the iconv api is part of the standard C library
-- but on some others we have to link to an external libiconv:
extra-libraries: iconv