나무모에 미러 (일반/밝은 화면)
최근 수정 시각 : 2025-04-15 19:51:47

Learn You a Haskell for Great Good!

LYAH에서 넘어옴
Learn You a Haskell for Great Good!
가장 쉬운 하스켈 책
파일:lyah.webp
작가 미란 리포바카
삽화가 미란 리포바카
번역가 황반석
출판사 파일:미국 국기.svg No Starch Press
파일:대한민국 국기.svg 비제이퍼블릭
발매일 파일:미국 국기.svg 2011. 4.
파일:대한민국 국기.svg 2014. 2. 25.
쪽수 파일:미국 국기.svg 400쪽
파일:대한민국 국기.svg 412쪽
ISBN 파일:미국 국기.svg 9781593272838
파일:대한민국 국기.svg 9788994774619
1. 개요2. 번역서3. 목차4. 에러가 나는 예제5. 여담6. 관련 문서7. 외부 링크

1. 개요

Learn You a Haskell for Great Good!은 미란 리포바카가 지은 하스켈 입문서이다. 부제는 "A Beginner's Guide"이다. 긴 제목을 줄여서 LYGG, LYHGG, LYAH 등으로 줄여서 쓴다. 쉬운 설명과 익살스런 삽화로 많은 사랑을 받은 책이다.

2. 번역서

3. 목차

원서와 번역서의 목차 구성이 미묘하게 다르다.
{{{#!wiki style="display:flex; gap: 10px;"<table bordercolor=#000000><tablebgcolor=white> 원서
Chapter 제목
1 Introduction
2 Starting Out
3 Types and Typeclasses
4 Syntax in Functions
5 Recursion
6 Higher Order Functions
7 Modules
8 Making Our Own Types and Typeclasses
9 Input and Output
10 Functionally Solving Problems
11 Functors, Applicatives Functors and Monoids
12 A Fistful of Monads
13 For a Few Monads More[2]
14 Zippers
번역서
Chapter 제목
1 시작하기
2 타입
3 함수의 구문
4 개념적인 개요
5 고차원 함수
6 모듈
7 타입과 타입 클래스 만들기
8 입력과 출력
9 More 입력과 출력
10 함수적으로 문제 해결하기
11 어플리커티브 펑터
12 모노이드
13 수많은 모나드
14 More 모나드
15 지퍼
}}}||

4. 에러가 나는 예제

import System.IO
import System.IO.Error

main = toTry `catch` handler

toTry :: IO ()
toTry = do
(fileName:_) <- getArgs
contents <- readFile fileName
putStrLn $
"The file has " ++ show (length (lines contents)) ++ " lines!"

handler :: IOError -> IO ()
handler e = putStrLn "Whoops, had some trouble!"
}}}}}}
instance Monoid (First a) where
mempty = First Nothing
First (Just x) `mappend` _ = First (Just x)
First Nothing `mappend` x = x
}}}}}}}}}}}}}}}ghci> import System.Random
}}}

5. 여담

6. 관련 문서

7. 외부 링크


[1] https://www.aladin.co.kr/shop/UsedShop/wuseditemall.aspx?ItemId=36960427&TabType=1[2] 이 챕터 제목은 석양의 건맨의 원제목을 패러디한 것이다.[3] https://learnyouahaskell.com/faq