Jason Segel working on middle-grade book series

Actor-musician Jason Segel working on middle-grade book series set in haunted town

FILE - This Dec. 12, 2012 file photo shows actor Jason Segel at the premiere of "This Is 40" in Los Angeles. Segel has a deal with Random House Children's Books for a middle-grade series set in a haunted town. The series is called “Nightmares!” and will debut in the Fall of 2014. (Photo by Todd Williamson/Invision/AP, file)

NEW YORK (AP) -- Jason Segel is becoming an author.

The star of the TV series "How I Met Your Mother" and "Freaks and Geeks" has a deal with Random House Children's Books for a middle-grade series set in a haunted town. The series is called "Nightmares!" and will debut in the fall of 2014.

Random House announced Wednesday that best-selling children's author Kirsten Miller will collaborate with Segel. The publisher is calling the series a story of kids "overcoming their fears."

The 33-year-old Segel is also known for the films "Knocked Up" and "Forgetting Sarah Marshall."