문제

*Main> :t putStrn

<interactive>:1:1:
Not in scope: `putStrn'
Perhaps you meant one of these:  
  `putStr' (imported from Prelude),  
  `putStrLn' (imported from Prelude)
.

Haskell 모드로 Emacs에서 Haskell 프로그래밍을 연습하고 있습니다.

터미널을 사용하는 동안에도 다음과 같은 오류가 발생합니다 :

optimight@optimight:~$ ghci  
GHCi, version 7.4.1: http://www.haskell.org/ghc/  :? for help  
Loading package ghc-prim ... linking ... done. 
Loading package integer-gmp ... linking ... done.  
Loading package base ... linking ... done.  
Prelude> :set prompt ghci>  
ghci>:t putStrln   

<interactive>:1:1:  
    Not in scope: `putStrln'  
    Perhaps you meant one of these:  
      `putStrLn' (imported from Prelude),  
      `putStr' (imported from Prelude)
.

도움이 되었습니까?

해결책

찾고있는 I / O 작업은 putStrLn .참고 Capital L-Haskell 기호는 " 라인에 문자열을 넣어 자체의 문자열을 넣는 것처럼 대소 문자를 구분합니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top