のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

Haskell

brew doctor

mbp01:~ m_fujii$ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry and just ignore them. T…

Haskell-ghc-mod: ghc-mod failed to launch it is probably missing or misconfigured

~がいけないみたいです。 ~を/User/usernameに書き換えたところ、動くようになりました。 ~/.cabal/bin/ghc-mod /Users/usename/.cabal/bin/ghc-mod Haskell-ghc-mod: ghc-mod failed to launch it is probably missing or misconfigured Error: spawnSync ~…

mac haskell atom

Atomの設定haskell-ghc-mod ide-haskell language-haskell autocomplete-haskellをインストール linter linter-hlintをインストール ide-haskellとautocomplete-haskellの設定画面からhaskell-ghc-modを選択 再起動してエラーが出たらhaskell-ghc-modの設定…

real world haskell 第3章 練習問題 P71

1.リスト中の要素数を数える関数を書きなさい。 2.ソースファイルに1.で作った関数の型シグネチャを追加しなさい。 myLength :: [a]->Int <=型シグネチャ myLength (_:xs) = 1 + myLength(xs) myLength [] = 0 ================================= ghc> myL…

real world haskell 第3章 練習問題 P62

これでいいんだ。 toList (Cons x xs) = x : (toList xs) toList Nil = []

関数型言語 Haskell 入門

環境: Download Haskell 本物のプログラマはHaskellを使う - 第39回 一般向けの「Haskell Platform」とインストール・ツールの「ca...:ITpro プログラミング: Haskell のお勉強 Chapters - Learn You a Haskell for Great Good! A Gentle Introduction to…

parse error on input `='

haskell - Hakell error parse error on input `=' - Stack Overflow