The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

445612 (1) [Avatar] Offline
#1
In section 4.1.2, the code listing below "FIXING SELECTBYINDEX",
there is a missing
Nothing
after
Nothing ->
rtfeldman (60) [Avatar] Offline
#2
Hm, it looks right to me...is this what you're seeing?
        newSelectedUrl : Maybe String
        newSelectedUrl =
            case newSelectedPhoto of
                Just photo ->
                    Just photo.url

                Nothing ->
                    Nothing

If not, maybe it's format-specific? Are you reading on ebook or pdf?